From 4d406730a2dc4610a98f3abeed9296c8932774d7 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 4 Jun 2008 14:40:56 +0200 Subject: use gnulib's progname module * bootstrap.conf (gnulib_modules): Add progname. * src/mkid.c: Include "progname.h". (program_name): Remove declaration. (main): Call set_program_name rather than setting program_name. * src/fid.c: Likewise. * src/fnid.c: Likewise. * src/lid.c: Likewise. * src/xtokid.c: Likewise. --- src/fid.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/fid.c') diff --git a/src/fid.c b/src/fid.c index 05130fd..aaff56d 100644 --- a/src/fid.c +++ b/src/fid.c @@ -32,6 +32,7 @@ #include "xnls.h" #include "idfile.h" #include "iduglobal.h" +#include "progname.h" static int get_file_index (char *file_name); static int is_hit (unsigned char const *hits, int file_number); @@ -42,10 +43,6 @@ void usage (void); struct idhead idh; static int tree8_levels; -/* The name this program was run with. */ - -char const *program_name; - /* If nonzero, display usage information and exit. */ static int show_help; @@ -101,7 +98,7 @@ main (int argc, char **argv) int index_1 = -1; int index_2 = -1; - program_name = argv[0]; + set_program_name (argv[0]); idh.idh_file_name = 0; -- cgit v1.2.3