diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-01-21 08:51:01 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-01-21 08:51:01 +0000 |
commit | b39138e19d2ece624fc48d26826cb806b5306b90 (patch) | |
tree | 46ceb02a9071e0642b7d3e63eedc2198cbb22777 /usr.bin | |
parent | 70053377d144188aeb66609898f1b1b7ff25b912 (diff) |
Accommodate gcc's suggestion that assignments used as truth values
should be enclosed in parentheses.
ok deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/look/look.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/look/look.c b/usr.bin/look/look.c index a91abaf26bd..2f6fd63c0c2 100644 --- a/usr.bin/look/look.c +++ b/usr.bin/look/look.c @@ -1,4 +1,4 @@ -/* $OpenBSD: look.c,v 1.19 2016/09/13 15:27:47 millert Exp $ */ +/* $OpenBSD: look.c,v 1.20 2017/01/21 08:51:00 krw Exp $ */ /* $NetBSD: look.c,v 1.7 1995/08/31 22:41:02 jtc Exp $ */ /*- @@ -134,7 +134,7 @@ look(char *string, char *front, char *back) char *readp, *writep; /* Reformat string to avoid doing it multiple times later. */ - for (readp = writep = string; ch = *readp++;) { + for (readp = writep = string; (ch = *readp++);) { if (fflag) ch = tolower((unsigned char)ch); if (!dflag || isalnum((unsigned char)ch)) |