From d392ea4ac5eb04e1adbcf8066d0508af9dc6e072 Mon Sep 17 00:00:00 2001 From: markm Date: Tue, 11 Dec 2001 23:39:38 +0000 Subject: WARNS=2 fixes, use __FBSDID(). --- usr.bin/tput/tput.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'usr.bin/tput') diff --git a/usr.bin/tput/tput.c b/usr.bin/tput/tput.c index 700ed1a..1e4f4f7 100644 --- a/usr.bin/tput/tput.c +++ b/usr.bin/tput/tput.c @@ -31,19 +31,19 @@ * SUCH DAMAGE. */ +#include + +__FBSDID("$FreeBSD$"); + #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1980, 1988, 1993\n\ The Regents of the University of California. All rights reserved.\n"; -#endif /* not lint */ +#endif #ifndef lint -#if 0 -static char sccsid[] = "@(#)tput.c 8.2 (Berkeley) 3/19/94"; +static const char sccsid[] = "@(#)tput.c 8.2 (Berkeley) 3/19/94"; #endif -static char rcsid[] = -"$FreeBSD$"; -#endif /* not lint */ #include @@ -59,7 +59,7 @@ static char rcsid[] = static void prlongname __P((char *)); static void usage __P((void)); -static char **process __P((char *, char *, char **)); +static char **process __P((const char *, char *, char **)); int main(argc, argv) @@ -67,7 +67,8 @@ main(argc, argv) char **argv; { int ch, exitval, n; - char *cptr, *p, *term, buf[1024], tbuf[1024]; + char *cptr, *term, buf[1024], tbuf[1024]; + const char *p; term = NULL; while ((ch = getopt(argc, argv, "T:")) != -1) @@ -134,7 +135,8 @@ prlongname(buf) static char ** process(cap, str, argv) - char *cap, *str, **argv; + const char *cap; + char *str, **argv; { static char errfew[] = "not enough arguments (%d) for capability `%s'"; -- cgit v1.1