Richard W.M. Jones
2009-Nov-26 13:34 UTC
[Libguestfs] [PATCH] daemon: program_name must be defined for Gnulib error module.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top -------------- next part -------------->From 42407dd684bf9abaa046eb173de8dad4f2f80419 Mon Sep 17 00:00:00 2001From: Richard Jones <rjones at redhat.com> Date: Thu, 26 Nov 2009 13:23:56 +0000 Subject: [PATCH] daemon: program_name must be defined for Gnulib error module. --- daemon/guestfsd.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index c67503e..b525db5 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -114,6 +114,9 @@ winsock_init (void) const char *sysroot = "/sysroot"; /* No trailing slash. */ int sysroot_len = 8; +/* Not used, but required by the gnulib 'error' module. */ +const char *program_name = "guestfsd"; + static void usage (void) { -- 1.6.5.2
Jim Meyering
2009-Nov-26 13:48 UTC
[Libguestfs] [PATCH] daemon: program_name must be defined for Gnulib error module.
Richard W.M. Jones wrote:> Subject: [PATCH] daemon: program_name must be defined for Gnulib error module. > > --- > daemon/guestfsd.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c > index c67503e..b525db5 100644 > --- a/daemon/guestfsd.c > +++ b/daemon/guestfsd.c > @@ -114,6 +114,9 @@ winsock_init (void) > const char *sysroot = "/sysroot"; /* No trailing slash. */ > int sysroot_len = 8; > > +/* Not used, but required by the gnulib 'error' module. */You must mean "Not used *explicitly* ..." because if error is ever called, then program_name may be used. ACK> +const char *program_name = "guestfsd"; > + > static void > usage (void) > {
Seemingly Similar Threads
- Re: [PATCH 2/5] macosx: Add definition of program_name for gnulib
- Re: [PATCH 2/5] macosx: Add definition of program_name for gnulib
- Re: [PATCH 2/5] macosx: Add definition of program_name for gnulib
- Re: [PATCH 2/5] macosx: Add definition of program_name for gnulib
- Re: [PATCH] gnulib: Define argv[0] as program_name for error.c on Darwin