diff options
author | Mark Murray <markm@FreeBSD.org> | 2001-12-11 22:34:38 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 2001-12-11 22:34:38 +0000 |
commit | 9ba3a235b158a579891a6a1f21aa73c05229de6d (patch) | |
tree | 32b39ad1729133db82983fb614df6c7b1c3c59d6 /usr.bin/write | |
parent | 6f223d2222568b5c63fff08e5c6ae68bf7a73f0e (diff) | |
download | src-test-9ba3a235b158a579891a6a1f21aa73c05229de6d.tar.gz src-test-9ba3a235b158a579891a6a1f21aa73c05229de6d.zip |
WARNS=2 fixes, use __FBSDID(), kill register keyword.
Notes
Notes:
svn path=/head/; revision=87682
Diffstat (limited to 'usr.bin/write')
-rw-r--r-- | usr.bin/write/write.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/usr.bin/write/write.c b/usr.bin/write/write.c index 406eeb3f7565a..247ff5c6286d2 100644 --- a/usr.bin/write/write.c +++ b/usr.bin/write/write.c @@ -34,19 +34,19 @@ * 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[] = "@(#)write.c 8.1 (Berkeley) 6/6/93"; +static const char sccsid[] = "@(#)write.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = - "$FreeBSD$"; -#endif /* not lint */ #include <sys/param.h> #include <sys/signal.h> @@ -253,8 +253,9 @@ do_write(tty, mytty, myuid) char *tty, *mytty; uid_t myuid; { - register char *login, *nows; - register struct passwd *pwd; + const char *login; + char *nows; + struct passwd *pwd; time_t now; char path[MAXPATHLEN], host[MAXHOSTNAMELEN], line[512]; @@ -291,7 +292,7 @@ do_write(tty, mytty, myuid) */ void done(n) -int n; /* signal number */ + int n __unused; { (void)printf("EOF\r\n"); exit(0); @@ -303,7 +304,7 @@ int n; /* signal number */ */ void wr_fputs(s) - register unsigned char *s; + unsigned char *s; { #define PUTC(c) if (putchar(c) == EOF) err(1, NULL); |