summaryrefslogtreecommitdiffstats
path: root/usr.bin/unvis
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/unvis
parentd0e180a89a67ffe34aaf88ece44ae7537b7c2350 (diff)
downloadFreeBSD-src-383583bd4fd72315ced02ab5741047a6a7f3e7a7.zip
FreeBSD-src-383583bd4fd72315ced02ab5741047a6a7f3e7a7.tar.gz
Warns cleanups. Add FreeBSD ID to Makefile.
Diffstat (limited to 'usr.bin/unvis')
-rw-r--r--usr.bin/unvis/Makefile2
-rw-r--r--usr.bin/unvis/unvis.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/unvis/Makefile b/usr.bin/unvis/Makefile
index a6807ff..d50d344 100644
--- a/usr.bin/unvis/Makefile
+++ b/usr.bin/unvis/Makefile
@@ -1,5 +1,7 @@
+# $FreeBSD$
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= unvis
+WARNS?= 2
.include <bsd.prog.mk>
diff --git a/usr.bin/unvis/unvis.c b/usr.bin/unvis/unvis.c
index 8cfe1f2..d582a83 100644
--- a/usr.bin/unvis/unvis.c
+++ b/usr.bin/unvis/unvis.c
@@ -51,11 +51,12 @@ static const char rcsid[] =
#include <unistd.h>
#include <vis.h>
-void process __P((FILE *, char *));
+void process __P((FILE *, const char *));
static void usage __P((void));
int
main(argc, argv)
+ int argc;
char *argv[];
{
FILE *fp;
@@ -93,7 +94,7 @@ usage()
void
process(fp, filename)
FILE *fp;
- char *filename;
+ const char *filename;
{
register int offset = 0, c, ret;
int state = 0;
OpenPOWER on IntegriCloud