diff options
author | Jim Meyering <meyering@redhat.com> | 2008-06-04 14:40:56 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-06-04 14:45:13 +0200 |
commit | 4d406730a2dc4610a98f3abeed9296c8932774d7 (patch) | |
tree | 5a6fc5c01c5e5199f0199a071677c670d6a7b3b8 /src/fid.c | |
parent | 276db496b3061983e92c529647576e7450e211d4 (diff) | |
download | idutils-4d406730a2dc4610a98f3abeed9296c8932774d7.tar.gz idutils-4d406730a2dc4610a98f3abeed9296c8932774d7.tar.bz2 idutils-4d406730a2dc4610a98f3abeed9296c8932774d7.zip |
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.
Diffstat (limited to 'src/fid.c')
-rw-r--r-- | src/fid.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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; |