]> granicus.if.org Git - shadow/commitdiff
Assume optarg and optind are declared in <getopt.h>.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 6 Jan 2008 12:52:23 +0000 (12:52 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 6 Jan 2008 12:52:23 +0000 (12:52 +0000)
ChangeLog
src/groupmems.c
src/useradd.c

index a48e20c9252805518e2b1e7582ef6b1a09c63a62..5c3b10efb733986b385ea3427ee2361d5e387db1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-06  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * src/useradd.c, src/groupmems.c: Assume optarg and optind are
+       declared in <getopt.h>.
+
 2008-01-06  Nicolas François  <nicolas.francois@centraliens.net>
 
        * src/usermod.c: Remove the pw_name argument of new_pw_passwd. Use
index cb78ce24cd02552cc31ccf1ffd08536e948bc933..3fb982de5517c9479e335e3114c1ad4925f42bc5 100644 (file)
@@ -59,8 +59,6 @@
 /*
  * Global variables
  */
-extern int optind;
-extern char *optarg;
 static char *adduser = NULL;
 static char *deluser = NULL;
 static char *thisgroup = NULL;
index 4f9bc1023a3c67c8b0330cf5717388fca49a442e..8a856cd9abb2afc4a6fbaab5cd49f42a2131b786 100644 (file)
@@ -131,9 +131,6 @@ static int
     sflg = 0,                  /* shell program for new account */
     uflg = 0;                  /* specify user ID for new account */
 
-extern char *optarg;
-extern int optind;
-
 static int home_added;
 
 /*