summaryrefslogtreecommitdiffstats
path: root/usr.bin/ul
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-12-03 21:37:35 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-12-03 21:37:35 +0000
commit383583bd4fd72315ced02ab5741047a6a7f3e7a7 (patch)
tree289e19ab28f237ce4e3c6dbb028a8bbff798eae4 /usr.bin/ul
parentd0e180a89a67ffe34aaf88ece44ae7537b7c2350 (diff)
downloadFreeBSD-src-383583bd4fd72315ced02ab5741047a6a7f3e7a7.zip
FreeBSD-src-383583bd4fd72315ced02ab5741047a6a7f3e7a7.tar.gz
Warns cleanups. Add FreeBSD ID to Makefile.
Diffstat (limited to 'usr.bin/ul')
-rw-r--r--usr.bin/ul/Makefile2
-rw-r--r--usr.bin/ul/ul.c15
2 files changed, 10 insertions, 7 deletions
diff --git a/usr.bin/ul/Makefile b/usr.bin/ul/Makefile
index 645c291..a28e590 100644
--- a/usr.bin/ul/Makefile
+++ b/usr.bin/ul/Makefile
@@ -1,6 +1,8 @@
+# $FreeBSD$
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= ul
+WARNS?= 2
DPADD= ${LIBTERMCAP}
LDADD= -ltermcap
diff --git a/usr.bin/ul/ul.c b/usr.bin/ul/ul.c
index 597add1..409bae8 100644
--- a/usr.bin/ul/ul.c
+++ b/usr.bin/ul/ul.c
@@ -68,7 +68,8 @@ static const char rcsid[] =
#define BOLD 020 /* Bold */
int must_use_uc, must_overstrike;
-char *CURS_UP, *CURS_RIGHT, *CURS_LEFT,
+const char
+ *CURS_UP, *CURS_RIGHT, *CURS_LEFT,
*ENTER_STANDOUT, *EXIT_STANDOUT, *ENTER_UNDERLINE, *EXIT_UNDERLINE,
*ENTER_DIM, *ENTER_BOLD, *ENTER_REVERSE, *UNDER_CHAR, *EXIT_ATTRIBUTES;
@@ -105,7 +106,7 @@ main(argc, argv)
char **argv;
{
int c;
- char *termtype;
+ const char *termtype;
FILE *f;
char termcap[1024];
@@ -117,7 +118,7 @@ main(argc, argv)
case 't':
case 'T': /* for nroff compatibility */
- termtype = optarg;
+ termtype = optarg;
break;
case 'i':
iflag = 1;
@@ -168,7 +169,7 @@ void
filter(f)
FILE *f;
{
- register c;
+ int c;
while ((c = getc(f)) != EOF && col < MAXBUF) switch(c) {
@@ -278,8 +279,8 @@ filter(f)
void
flushln()
{
- register lastmode;
- register i;
+ int lastmode;
+ int i;
int hadmodes = 0;
lastmode = NORMAL;
@@ -390,7 +391,7 @@ initbuf()
void
fwd()
{
- register oldcol, oldmax;
+ int oldcol, oldmax;
oldcol = col;
oldmax = maxcol;
OpenPOWER on IntegriCloud