Warns cleanup - not ready for WARNS=2 yet.

This commit is contained in:
David Malone 2001-12-03 21:04:50 +00:00
parent fae4fbf838
commit 106b1a8c91
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87288

View File

@ -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)