]> granicus.if.org Git - shadow/commitdiff
The prototypes of fgetsx() and fputsx() are already defined in
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 5 Jan 2008 13:56:21 +0000 (13:56 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 5 Jan 2008 13:56:21 +0000 (13:56 +0000)
prototypes.h. Remove the declaration of these functions.

ChangeLog
lib/gshadow.c

index 72fe076136fb1bb7defde3e5cbba90662df7820d..1ca93c078c8062d63e7d139b096f2f740694b1c4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -25,6 +25,9 @@
        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>
 
index 5d4080476d45e698bd210eb6f5e6681f0b5211e9..5f45eb53f517cd8021fc3d274c0a2d7cb9066c6f 100644 (file)
@@ -45,9 +45,6 @@ static char **admins = NULL;
 static size_t nadmins = 0;
 static struct sgrp sgroup;
 
-extern char *fgetsx ();
-extern int fputsx ();
-
 #define        FIELDS  4
 
 #ifdef USE_NIS
@@ -92,7 +89,7 @@ static int bind_nis (void)
 }
 #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;
@@ -184,8 +181,8 @@ struct sgrp *sgetsgent (const char *string)
                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;
 }