diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-16 21:28:12 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-16 21:28:12 +0000 |
commit | 6d57a1a176004a7d8fc009cdcf760098f86e3263 (patch) | |
tree | ee423c619fad03813234b9362694a17f3a638f0b /usr.bin/login | |
parent | c707cb295fc3cac8d8feb343e949e0dcf71b8476 (diff) |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'usr.bin/login')
-rw-r--r-- | usr.bin/login/failedlogin.c | 8 | ||||
-rw-r--r-- | usr.bin/login/login.c | 34 |
2 files changed, 21 insertions, 21 deletions
diff --git a/usr.bin/login/failedlogin.c b/usr.bin/login/failedlogin.c index 7b3fd4e295c..b54dabf754a 100644 --- a/usr.bin/login/failedlogin.c +++ b/usr.bin/login/failedlogin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: failedlogin.c,v 1.10 2001/07/06 18:12:05 pvalchev Exp $ */ +/* $OpenBSD: failedlogin.c,v 1.11 2002/02/16 21:27:48 millert Exp $ */ /* * Copyright (c) 1996 Todd C. Miller <Todd.Miller@courtesan.com> @@ -28,7 +28,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: failedlogin.c,v 1.10 2001/07/06 18:12:05 pvalchev Exp $"; +static char rcsid[] = "$OpenBSD: failedlogin.c,v 1.11 2002/02/16 21:27:48 millert Exp $"; #endif /* not lint */ /* @@ -58,8 +58,8 @@ struct badlogin { size_t count; /* number of bad logins */ }; -void log_failedlogin __P((uid_t, char *, char *, char *)); -int check_failedlogin __P((uid_t)); +void log_failedlogin(uid_t, char *, char *, char *); +int check_failedlogin(uid_t); /* * Log a bad login to the failedlogin file. diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 3a2db0d9954..1eddd99d53e 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login.c,v 1.44 2002/01/06 21:59:15 millert Exp $ */ +/* $OpenBSD: login.c,v 1.45 2002/02/16 21:27:48 millert Exp $ */ /* $NetBSD: login.c,v 1.13 1996/05/15 23:50:16 jtc Exp $ */ /*- @@ -77,7 +77,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94"; #endif -static char rcsid[] = "$OpenBSD: login.c,v 1.44 2002/01/06 21:59:15 millert Exp $"; +static char rcsid[] = "$OpenBSD: login.c,v 1.45 2002/02/16 21:27:48 millert Exp $"; #endif /* not lint */ /* @@ -120,21 +120,21 @@ static char rcsid[] = "$OpenBSD: login.c,v 1.44 2002/01/06 21:59:15 millert Exp #include "pathnames.h" -void badlogin __P((char *)); -void dolastlog __P((int)); -void getloginname __P((void)); -void motd __P((void)); -void quickexit __P((int)); -int rootterm __P((char *)); -void sigint __P((int)); -void sighup __P((int)); -void sleepexit __P((int)); -char *stypeof __P((char *)); -void timedout __P((int)); -int main __P((int, char **)); - -extern int check_failedlogin __P((uid_t)); -extern void log_failedlogin __P((uid_t, char *, char *, char *)); +void badlogin(char *); +void dolastlog(int); +void getloginname(void); +void motd(void); +void quickexit(int); +int rootterm(char *); +void sigint(int); +void sighup(int); +void sleepexit(int); +char *stypeof(char *); +void timedout(int); +int main(int, char **); + +extern int check_failedlogin(uid_t); +extern void log_failedlogin(uid_t, char *, char *, char *); #define TTYGRPNAME "tty" /* name of group to own ttys */ |