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 | |
parent | 70053377d144188aeb66609898f1b1b7ff25b912 (diff) |
Accommodate gcc's suggestion that assignments used as truth values
should be enclosed in parentheses.
ok deraadt@
-rw-r--r-- | usr.bin/look/look.c | 4 | ||||
-rw-r--r-- | usr.sbin/mrouted/prune.c | 2 |
2 files changed, 3 insertions, 3 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)) diff --git a/usr.sbin/mrouted/prune.c b/usr.sbin/mrouted/prune.c index f250d22aca8..5d9e71a448e 100644 --- a/usr.sbin/mrouted/prune.c +++ b/usr.sbin/mrouted/prune.c @@ -562,7 +562,7 @@ reset_neighbor_state(vifi_t vifi, u_int32_t addr) g->gt_prsent_timer = 0; g->gt_grftsnt = 0; - while (st = g->gt_srctbl) { + while ((st = g->gt_srctbl)) { g->gt_srctbl = st->st_next; k_del_rg(st->st_origin, g); kroutes--; |