* 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.
This commit is contained in:
parent
81a4edb776
commit
bf3e8f290c
@ -1,3 +1,11 @@
|
|||||||
|
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
|
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/chgpasswd.c, src/chpasswd.c: Removed variable ok, which is
|
* src/chgpasswd.c, src/chpasswd.c: Removed variable ok, which is
|
||||||
|
@ -58,7 +58,7 @@ static bool sgr_locked = false;
|
|||||||
static char *Prog;
|
static char *Prog;
|
||||||
|
|
||||||
/* local function prototypes */
|
/* local function prototypes */
|
||||||
static void fail_exit (int);
|
static void fail_exit (int status);
|
||||||
|
|
||||||
static void fail_exit (int status)
|
static void fail_exit (int status)
|
||||||
{
|
{
|
||||||
@ -88,6 +88,9 @@ int main (int argc, char **argv)
|
|||||||
const struct sgrp *sg;
|
const struct sgrp *sg;
|
||||||
struct sgrp sgent;
|
struct sgrp sgent;
|
||||||
|
|
||||||
|
if (1 != argc) {
|
||||||
|
(void) fputs (_("Usage: grpconv\n"), stderr);
|
||||||
|
}
|
||||||
Prog = Basename (argv[0]);
|
Prog = Basename (argv[0]);
|
||||||
|
|
||||||
(void) setlocale (LC_ALL, "");
|
(void) setlocale (LC_ALL, "");
|
||||||
@ -218,7 +221,7 @@ int main (int argc, char **argv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else /* !SHADOWGRP */
|
#else /* !SHADOWGRP */
|
||||||
int main (int argc, char **argv)
|
int main (int unused(argc), char **argv)
|
||||||
{
|
{
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
"%s: not configured for shadow group support.\n", argv[0]);
|
"%s: not configured for shadow group support.\n", argv[0]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user