loginprompt for the internal variable.
* src/chsh.c: loginsh is a global variable, use newshell for the
update_shell()'s parameter.
+ * lib/gshadow.c: The prototypes of fgetsx() and fputsx() are
+ already defined in prototypes.h. Remove the declaration of these
+ functions.
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
static size_t nadmins = 0;
static struct sgrp sgroup;
-extern char *fgetsx ();
-extern int fputsx ();
-
#define FIELDS 4
#ifdef USE_NIS
}
#endif
-static char **list (char *s, char **list[], size_t * nlist)
+static char **build_list (char *s, char **list[], size_t * nlist)
{
char **ptr = *list;
size_t nelem = *nlist, size;
free (members);
members = NULL;
}
- sgroup.sg_adm = list (fields[2], &admins, &nadmins);
- sgroup.sg_mem = list (fields[3], &members, &nmembers);
+ sgroup.sg_adm = build_list (fields[2], &admins, &nadmins);
+ sgroup.sg_mem = build_list (fields[3], &members, &nmembers);
return &sgroup;
}