[Libguestfs] [PATCH 3/3] daemon: drop program_name definition

Richard W.M. Jones rjones at redhat.com
Thu Sep 8 08:13:49 UTC 2016


On Thu, Sep 08, 2016 at 10:10:45AM +0200, Pino Toscano wrote:
> It was previously needed by the 'error' module of gnulib; recent
> versions are able to get the name of the current program on their own.
> ---
>  daemon/guestfsd.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
> index b129ad0..85ce5d2 100644
> --- a/daemon/guestfsd.c
> +++ b/daemon/guestfsd.c
> @@ -125,9 +125,6 @@ int autosync_umount = 1;
>  /* If set, we are testing the daemon as part of the libguestfs tests. */
>  int test_mode = 0;
>  
> -/* Not used explicitly, but required by the gnulib 'error' module. */
> -const char *program_name = "guestfsd";
> -
>  /* Name of the virtio-serial channel. */
>  #define VIRTIO_SERIAL_CHANNEL "/dev/virtio-ports/org.libguestfs.channel.0"
>  

ACK series.  Thanks for fixing gnulib too.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the Libguestfs mailing list