[Pkg-shadow-commits] r2220 - upstream/trunk/src
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Sun Jul 27 01:47:57 UTC 2008
Author: nekral-guest
Date: 2008-07-27 01:47:56 +0000 (Sun, 27 Jul 2008)
New Revision: 2220
Modified:
upstream/trunk/src/groupmems.c
Log:
Harmonize error messages and add the prototypes for whoami(), members(), and usage().
Modified: upstream/trunk/src/groupmems.c
===================================================================
--- upstream/trunk/src/groupmems.c 2008-07-27 01:41:07 UTC (rev 2219)
+++ upstream/trunk/src/groupmems.c 2008-07-27 01:47:56 UTC (rev 2220)
@@ -70,6 +70,9 @@
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 @@
}
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);
More information about the Pkg-shadow-commits
mailing list