* src/grpconv.c: Use Basename for the definition of Prog. Prog

needs a file visibility.
	* src/grpunconv.c: Likewise.
This commit is contained in:
nekral-guest
2008-08-22 02:33:08 +00:00
parent 421085672b
commit 306f19b805
3 changed files with 14 additions and 4 deletions

View File

@@ -53,8 +53,9 @@
/*
* Global variables
*/
static bool gr_locked = false;
static bool gr_locked = false;
static bool sgr_locked = false;
static char *Prog;
/* local function prototypes */
static void fail_exit (int);
@@ -86,7 +87,8 @@ int main (int argc, char **argv)
struct group grent;
const struct sgrp *sg;
struct sgrp sgent;
char *Prog = argv[0];
Prog = Basename (argv[0]);
(void) setlocale (LC_ALL, "");
(void) bindtextdomain (PACKAGE, LOCALEDIR);