summaryrefslogtreecommitdiffstats
path: root/src/xtokid.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-06-04 14:40:56 +0200
committerJim Meyering <meyering@redhat.com>2008-06-04 14:45:13 +0200
commit4d406730a2dc4610a98f3abeed9296c8932774d7 (patch)
tree5a6fc5c01c5e5199f0199a071677c670d6a7b3b8 /src/xtokid.c
parent276db496b3061983e92c529647576e7450e211d4 (diff)
downloadidutils-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/xtokid.c')
-rw-r--r--src/xtokid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xtokid.c b/src/xtokid.c
index 3ee8e92..36aa356 100644
--- a/src/xtokid.c
+++ b/src/xtokid.c
@@ -31,12 +31,12 @@
#include "scanners.h"
#include "idfile.h"
#include "iduglobal.h"
+#include "progname.h"
static void scan_files (struct idhead *idhp);
static void scan_member_file (struct member_file const *member);
void usage (void);
-char const *program_name;
static char *lang_map_file_name = 0;
static int show_version = 0;
static int show_help = 0;
@@ -92,7 +92,7 @@ The following arguments apply to the language-specific scanners:\n\
int
main (int argc, char **argv)
{
- program_name = argv[0];
+ set_program_name (argv[0]);
#if ENABLE_NLS
/* Set locale according to user's wishes. */