From 93177a56157dbceb1e9ceb6f0a800fe6dbb2f631 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sun, 6 Jan 2008 12:52:23 +0000 Subject: [PATCH] Assume optarg and optind are declared in . --- ChangeLog | 5 +++++ src/groupmems.c | 2 -- src/useradd.c | 3 --- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index a48e20c9..5c3b10ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-06 Nicolas François + + * src/useradd.c, src/groupmems.c: Assume optarg and optind are + declared in . + 2008-01-06 Nicolas François * src/usermod.c: Remove the pw_name argument of new_pw_passwd. Use diff --git a/src/groupmems.c b/src/groupmems.c index cb78ce24..3fb982de 100644 --- a/src/groupmems.c +++ b/src/groupmems.c @@ -59,8 +59,6 @@ /* * Global variables */ -extern int optind; -extern char *optarg; static char *adduser = NULL; static char *deluser = NULL; static char *thisgroup = NULL; diff --git a/src/useradd.c b/src/useradd.c index 4f9bc102..8a856cd9 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -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; /*