[Pkg-shadow-commits] r1665 - in upstream/trunk: . src

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sun Jan 6 12:52:24 UTC 2008


Author: nekral-guest
Date: 2008-01-06 12:52:23 +0000 (Sun, 06 Jan 2008)
New Revision: 1665

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/src/groupmems.c
   upstream/trunk/src/useradd.c
Log:
Assume optarg and optind are declared in <getopt.h>.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-01-06 12:50:22 UTC (rev 1664)
+++ upstream/trunk/ChangeLog	2008-01-06 12:52:23 UTC (rev 1665)
@@ -1,5 +1,10 @@
 2008-01-06  Nicolas François  <nicolas.francois at 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 at centraliens.net>
+
 	* src/usermod.c: Remove the pw_name argument of new_pw_passwd. Use
 	the user_newname global variable instead. This avoid using a
 	parameter with the same name as a function.

Modified: upstream/trunk/src/groupmems.c
===================================================================
--- upstream/trunk/src/groupmems.c	2008-01-06 12:50:22 UTC (rev 1664)
+++ upstream/trunk/src/groupmems.c	2008-01-06 12:52:23 UTC (rev 1665)
@@ -59,8 +59,6 @@
 /*
  * Global variables
  */
-extern int optind;
-extern char *optarg;
 static char *adduser = NULL;
 static char *deluser = NULL;
 static char *thisgroup = NULL;

Modified: upstream/trunk/src/useradd.c
===================================================================
--- upstream/trunk/src/useradd.c	2008-01-06 12:50:22 UTC (rev 1664)
+++ upstream/trunk/src/useradd.c	2008-01-06 12:52:23 UTC (rev 1665)
@@ -131,9 +131,6 @@
     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;
 
 /*




More information about the Pkg-shadow-commits mailing list