From 73877b22c40a512edc5eab5f7fc4ff3bda0a0890 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sun, 31 Aug 2008 17:28:21 +0000 Subject: [PATCH] * src/grpunconv.c: Fail if unexpected parameters are provided. * src/grpunconv.c: Indicate that argc is not used in the no SHADOWGRP version. --- ChangeLog | 7 ++++--- src/grpunconv.c | 5 ++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e7fdeb13..637b04e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,9 +2,10 @@ * src/grpconv.c, src/groups.c: Name the parameters in the prototypes of the static functions. - * src/grpconv.c: Fail if unexpected parameters are provided. - * src/grpconv.c: Indicate that argc is not used in the no - SHADOWGRP version. + * src/grpconv.c, src/grpunconv.c: Fail if unexpected parameters + are provided. + * src/grpconv.c, src/grpunconv.c: Indicate that argc is not used + in the no SHADOWGRP version. 2008-08-28 Nicolas François diff --git a/src/grpunconv.c b/src/grpunconv.c index e82cf1ca..3b706368 100644 --- a/src/grpunconv.c +++ b/src/grpunconv.c @@ -88,6 +88,9 @@ int main (int argc, char **argv) struct group grent; const struct sgrp *sg; + if (1 != argc) { + (void) fputs (_("Usage: grpunconv\n"), stderr); + } Prog = Basename (argv[0]); (void) setlocale (LC_ALL, ""); @@ -187,7 +190,7 @@ int main (int argc, char **argv) return 0; } #else /* !SHADOWGRP */ -int main (int argc, char **argv) +int main (int unused(argc), char **argv) { fprintf (stderr, "%s: not configured for shadow group support.\n", argv[0]);