Code cleanup

This commit is contained in:
Michiel Broek 2005-07-14 19:22:13 +00:00
parent 5251b5f5fc
commit 9a3c47f15d
2 changed files with 344 additions and 350 deletions

View File

@ -1,13 +1,12 @@
/***************************************************************************** /*****************************************************************************
* *
* File ..................: mbuseradd/commonio.c * $Id$
* Purpose ...............: MBSE BBS Shadow Password Suite * Purpose ...............: MBSE BBS Shadow Password Suite
* Last modification date : 09-Aug-2001
* Original Source .......: Shadow Password Suite * Original Source .......: Shadow Password Suite
* Original Copyrioght ...: Julianne Frances Haugh and others. * Original Copyright ....: Julianne Frances Haugh and others.
* *
***************************************************************************** *****************************************************************************
* Copyright (C) 1997-2001 * Copyright (C) 1997-2005
* *
* Michiel Broek FIDO: 2:280/2802 * Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10 * Beekmansbos 10

View File

@ -5,7 +5,7 @@
* Shadow Suite (c) ......: Julianne Frances Haugh * Shadow Suite (c) ......: Julianne Frances Haugh
* *
***************************************************************************** *****************************************************************************
* Copyright (C) 1997-2004 * Copyright (C) 1997-2005
* *
* Michiel Broek FIDO: 2:280/2802 * Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10 * Beekmansbos 10
@ -241,7 +241,6 @@ static void check_flags(int argc, char * const *argv)
* clever rlogin, telnet, and getty holes. * clever rlogin, telnet, and getty holes.
*/ */
for (arg = 1; arg < argc; arg++) { for (arg = 1; arg < argc; arg++) {
// printf("%d <%s>\n", arg, argv[arg]);
if (argv[arg][0] == '-' && strlen(argv[arg]) > 2) if (argv[arg][0] == '-' && strlen(argv[arg]) > 2)
usage(); usage();
} }
@ -509,8 +508,6 @@ int main(int argc, char **argv)
init_env(); init_env();
if (optind < argc) { /* get the user name */ if (optind < argc) { /* get the user name */
// if (rflg || fflg)
// usage();
#ifdef SVR4 #ifdef SVR4
/* /*
@ -527,8 +524,6 @@ int main(int argc, char **argv)
} }
} }
// printf("[%s]\n", username);
#ifdef SVR4 #ifdef SVR4
/* /*
* check whether ttymon has done the prompt for us already * check whether ttymon has done the prompt for us already