Jim Meyering
2009-Nov-20 10:51 UTC
[Libguestfs] [PATCH libguestfs] maint: remove unnecessary include of openat.h
>From 34af5f3be8b04443dc151e6d070aa49cbe59b7fc Mon Sep 17 00:00:00 2001From: Jim Meyering <meyering at redhat.com> Date: Fri, 20 Nov 2009 11:50:54 +0100 Subject: [PATCH libguestfs] maint: remove unnecessary include of openat.h * daemon/realpath.c: Don't include "openat.h". not used. --- daemon/realpath.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/daemon/realpath.c b/daemon/realpath.c index 17e74ea..750cadb 100644 --- a/daemon/realpath.c +++ b/daemon/realpath.c @@ -27,8 +27,6 @@ #include <sys/types.h> #include <dirent.h> -#include "openat.h" - #include "daemon.h" #include "actions.h" -- 1.6.5.3.433.g11067
Richard W.M. Jones
2009-Nov-20 10:56 UTC
[Libguestfs] [PATCH libguestfs] maint: remove unnecessary include of openat.h
On Fri, Nov 20, 2009 at 11:51:20AM +0100, Jim Meyering wrote:> > > >From 34af5f3be8b04443dc151e6d070aa49cbe59b7fc Mon Sep 17 00:00:00 2001 > From: Jim Meyering <meyering at redhat.com> > Date: Fri, 20 Nov 2009 11:50:54 +0100 > Subject: [PATCH libguestfs] maint: remove unnecessary include of openat.h > > * daemon/realpath.c: Don't include "openat.h". not used. > --- > daemon/realpath.c | 2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) > > diff --git a/daemon/realpath.c b/daemon/realpath.c > index 17e74ea..750cadb 100644 > --- a/daemon/realpath.c > +++ b/daemon/realpath.c > @@ -27,8 +27,6 @@ > #include <sys/types.h> > #include <dirent.h> > > -#include "openat.h" > - > #include "daemon.h" > #include "actions.h"I don't understand this one -- the openat function is used in this file. Is the include still unnecessary? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
Seemingly Similar Threads
- [PATCH hivex] maint: remove unnecessary mkdir -p
- [PATCH libguestfs] build: make autogen.sh update .git-module-status, as it should
- [PATCH libguestfs] build: correct sed transformation to work also on .git-module-status
- [PATCH hivex 02/14] maint: remove unnecessary test-before-free
- [PATCH libguestfs] syntax-check: expand TABs in generator.ml