diff options
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbpasswd.c | 18 |
1 files changed, 6 insertions, 12 deletions
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; |