diff --git a/usr.sbin/sliplogin/sliplogin.c b/usr.sbin/sliplogin/sliplogin.c index 9eb32088f81a..03e689b5f431 100644 --- a/usr.sbin/sliplogin/sliplogin.c +++ b/usr.sbin/sliplogin/sliplogin.c @@ -1,4 +1,4 @@ -/* $NetBSD: sliplogin.c,v 1.22 2008/07/21 13:36:59 lukem Exp $ */ +/* $NetBSD: sliplogin.c,v 1.23 2011/08/30 20:42:22 joerg Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1990, 1993\ #if 0 static char sccsid[] = "@(#)sliplogin.c 8.2 (Berkeley) 2/1/94"; #else -__RCSID("$NetBSD: sliplogin.c,v 1.22 2008/07/21 13:36:59 lukem Exp $"); +__RCSID("$NetBSD: sliplogin.c,v 1.23 2011/08/30 20:42:22 joerg Exp $"); #endif #endif /* not lint */ @@ -100,21 +100,19 @@ __RCSID("$NetBSD: sliplogin.c,v 1.22 2008/07/21 13:36:59 lukem Exp $"); #include "pathnames.h" -int unit; -int speed; -int uid; -char loginargs[BUFSIZ]; -char loginfile[MAXPATHLEN]; -char loginname[BUFSIZ]; +static int unit; +static int speed; +static int uid; +static char loginargs[BUFSIZ]; +static char loginfile[MAXPATHLEN]; +static char loginname[BUFSIZ]; -void findid __P((char *)); -void hup_handler __P((int)); -int main __P((int, char **)); -const char *sigstr __P((int)); +static void findid(const char *); +__dead static void hup_handler(int); +static const char *sigstr(int); -void -findid(name) - char *name; +static void +findid(const char *name) { FILE *fp; static char slopt[5][16]; @@ -168,9 +166,8 @@ findid(name) /* NOTREACHED */ } -const char * -sigstr(s) - int s; +static const char * +sigstr(int s) { if (s > 0 && s < NSIG) @@ -183,9 +180,8 @@ sigstr(s) } } -void -hup_handler(s) - int s; +static void +hup_handler(int s) { char logoutfile[MAXPATHLEN]; @@ -208,9 +204,7 @@ hup_handler(s) } int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int fd, s, ldisc, odisc; char *name;