From 9579b9823707b9acadfd7bf24d1c540eacf53fc0 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 18 Nov 1998 22:04:24 +0000 Subject: Added OSF1 changes to HEAD (-lsecurity etc.) groupdb/groupdb.c: Fixed compile error caught by IRIX compiler. utils/smbpasswd.c: Fixed SunOS optind, optarg problem. Jeremy. (This used to be commit 30af39ae1edf51d5d06a1764982e5df431c142ac) --- source3/utils/smbpasswd.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'source3/utils/smbpasswd.c') diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index 3249103a27..519ca5a33d 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -23,6 +23,12 @@ extern pstring myhostname; extern pstring global_myname; extern int DEBUGLEVEL; +/* + * Next two lines needed for SunOS and don't + * hurt anything else... + */ +extern char *optarg; +extern int optind; /********************************************************* a strdup with exit @@ -254,12 +260,6 @@ handle password changing for root *************************************************************/ static int process_root(int argc, char *argv[]) { - /* - * Next two lines needed for SunOS and don't - * hurt anything else... - */ - extern char *optarg; - extern int optind; struct passwd *pwd; int ch; BOOL joining_domain = False; @@ -449,12 +449,6 @@ handle password changing for non-root *************************************************************/ static int process_nonroot(int argc, char *argv[]) { - /* - * Next two lines needed for SunOS and don't - * hurt anything else... - */ - extern char *optarg; - extern int optind; struct passwd *pwd = NULL; int ch; BOOL stdin_passwd_get = False; -- cgit