[Libguestfs] [PATCH libguestfs] maint: remove unnecessary include of openat.h

Richard W.M. Jones rjones at redhat.com
Fri Nov 20 10:56:50 UTC 2009


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




More information about the Libguestfs mailing list