diff options
author | Mark Murray <markm@FreeBSD.org> | 2001-12-11 22:29:53 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 2001-12-11 22:29:53 +0000 |
commit | 2c062c85e5b456b705e1777892a2566d6685f642 (patch) | |
tree | 5fbd1c0196d8c6e3e29e44f9fd5f980ba916a98c /usr.bin/who | |
parent | 1c6cde4bb51eb79c3eb26a4c6a33a4a547c53338 (diff) |
WARNS=2 fix, use __FBSDID().
WARNS=2 is not in Makefile, as this will be the default.
Notes
Notes:
svn path=/head/; revision=87679
Diffstat (limited to 'usr.bin/who')
-rw-r--r-- | usr.bin/who/who.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c index a646d58c5c43..d18a9b5625e8 100644 --- a/usr.bin/who/who.c +++ b/usr.bin/who/who.c @@ -34,22 +34,23 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> + +__FBSDID("$FreeBSD$"); + #ifndef lint static const char copyright[] = "@(#) Copyright (c) 1989, 1993\n\ The Regents of the University of California. All rights reserved.\n"; -#endif /* not lint */ +#endif #ifndef lint -#if 0 -static char sccsid[] = "@(#)who.c 8.1 (Berkeley) 6/6/93"; +static const char sccsid[] = "@(#)who.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = - "$FreeBSD$"; -#endif /* not lint */ #include <sys/types.h> #include <sys/file.h> + #include <err.h> #include <langinfo.h> #include <locale.h> @@ -62,17 +63,18 @@ static const char rcsid[] = #include <utmp.h> static void usage __P((void)); -void output __P((struct utmp *)); +static void output __P((struct utmp *)); +static FILE *file __P((const char *)); int main(argc, argv) int argc; char **argv; { - register char *p; + char *p; struct utmp usr; struct passwd *pw; - FILE *ufp, *file(); + FILE *ufp; char *t; (void) setlocale(LC_TIME, ""); @@ -154,9 +156,9 @@ output(up) (void)putchar('\n'); } -FILE * +static FILE * file(name) - char *name; + const char *name; { FILE *ufp; |