summaryrefslogtreecommitdiffstats
path: root/usr.bin/tput
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-12-11 23:39:38 +0000
committermarkm <markm@FreeBSD.org>2001-12-11 23:39:38 +0000
commitd392ea4ac5eb04e1adbcf8066d0508af9dc6e072 (patch)
tree96fb5599027727d1c125b3de4ce27f1ca8e6ceb6 /usr.bin/tput
parent832832ca4c8760b6f657dbbc70bf0befa0d09f28 (diff)
downloadFreeBSD-src-d392ea4ac5eb04e1adbcf8066d0508af9dc6e072.zip
FreeBSD-src-d392ea4ac5eb04e1adbcf8066d0508af9dc6e072.tar.gz
WARNS=2 fixes, use __FBSDID().
Diffstat (limited to 'usr.bin/tput')
-rw-r--r--usr.bin/tput/tput.c22
1 files changed, 12 insertions, 10 deletions
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 <sys/cdefs.h>
+
+__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 <termios.h>
@@ -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'";
OpenPOWER on IntegriCloud