From: nekral-guest Date: Sun, 27 Jul 2008 01:47:56 +0000 (+0000) Subject: Harmonize error messages and add the prototypes for whoami(), members(), and usage(). X-Git-Tag: 4.1.3~314 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f3ee46325e949c16f048b8a6228ebbf3376d2ed;p=shadow Harmonize error messages and add the prototypes for whoami(), members(), and usage(). --- diff --git a/src/groupmems.c b/src/groupmems.c index d05988c0..43c7393f 100644 --- a/src/groupmems.c +++ b/src/groupmems.c @@ -70,6 +70,9 @@ static int exclusive = 0; static char *Prog; static bool group_locked = false; +static char *whoami (void); +static void members (char **members); +static void usage (void); static void process_flags (int argc, char **argv); static void check_perms (void); static void fail_exit (int code); @@ -288,14 +291,12 @@ int main (int argc, char **argv) } if (!gr_close ()) { - fputs (_("Cannot close group file\n"), stderr); + fprintf (stderr, _("%s: unable to close group file\n"), Prog); fail_exit (EXIT_GROUP_FILE); } if (gr_unlock () == 0) { - fprintf (stderr, - _("%s: unable to unlock group file\n"), - Prog); + fprintf (stderr, _("%s: unable to unlock group file\n"), Prog); } exit (EXIT_SUCCESS);