diff options
author | markm <markm@FreeBSD.org> | 2001-12-12 23:20:16 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-12-12 23:20:16 +0000 |
commit | f7397edc4d0bd6a7fd6a0977b4b633014803df01 (patch) | |
tree | 5d25a0ea177cc25b4ce3bcdb0f8afa644442699e /usr.bin/sed/main.c | |
parent | e006d8bee036793ac728aedff3bf9301a15d581b (diff) | |
download | FreeBSD-src-f7397edc4d0bd6a7fd6a0977b4b633014803df01.zip FreeBSD-src-f7397edc4d0bd6a7fd6a0977b4b633014803df01.tar.gz |
WARNS=2 partial fix; use NO_WERROR to protect against some hard-to-fix warnings.
Use __FBSDID(), kill register keyword.
Diffstat (limited to 'usr.bin/sed/main.c')
-rw-r--r-- | usr.bin/sed/main.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/usr.bin/sed/main.c b/usr.bin/sed/main.c index 2811ca6..5ba910c 100644 --- a/usr.bin/sed/main.c +++ b/usr.bin/sed/main.c @@ -35,19 +35,18 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + #ifndef lint static const char copyright[] = "@(#) Copyright (c) 1992, 1993\n\ The Regents of the University of California. All rights reserved.\n"; -#endif /* not lint */ +#endif #ifndef lint -#if 0 -static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/3/94"; +static const char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/3/94"; #endif -static const char rcsid[] = - "$FreeBSD$"; -#endif /* not lint */ #include <sys/types.h> @@ -101,7 +100,7 @@ int rflags = 0; * Current file and line number; line numbers restart across compilation * units, but span across input files. */ -char *fname; /* File name. */ +const char *fname; /* File name. */ u_long linenum; int lastline; /* TRUE on the last line of the last file */ |