diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2001-12-03 21:04:50 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2001-12-03 21:04:50 +0000 |
commit | ffd5084704c1d32632dc8fbb32aa7afc514bd3cc (patch) | |
tree | d466af73a3260af30e781dbf3cee3d180e2c0e26 /usr.bin/look | |
parent | db0b731dacc59740857f17645ba5b1dca74cf1e6 (diff) | |
download | FreeBSD-src-ffd5084704c1d32632dc8fbb32aa7afc514bd3cc.zip FreeBSD-src-ffd5084704c1d32632dc8fbb32aa7afc514bd3cc.tar.gz |
Warns cleanup - not ready for WARNS=2 yet.
Diffstat (limited to 'usr.bin/look')
-rw-r--r-- | usr.bin/look/look.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/look/look.c b/usr.bin/look/look.c index ad2f35c..5fb7900 100644 --- a/usr.bin/look/look.c +++ b/usr.bin/look/look.c @@ -105,7 +105,8 @@ main(argc, argv) { struct stat sb; int ch, fd, termchar, match; - unsigned char *back, *file, *front, *string, *p; + unsigned char *back, *front, *string, *p; + unsigned const char *file; (void) setlocale(LC_CTYPE, ""); @@ -164,7 +165,7 @@ look(string, front, back) register unsigned char *readp, *writep; /* Reformat string string to avoid doing it multiple times later. */ - for (readp = writep = string; ch = *readp++;) { + for (readp = writep = string; (ch = *readp++);) { if (fflag) ch = FOLD(ch); if (dflag) |