From: Ian Jackson Date: Tue, 19 Nov 2019 01:16:29 +0000 (+0000) Subject: polypath.c: Fix a compiler warning X-Git-Tag: v0.5.1~10 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=611404b83e10fb82a62c7649f5800ae294dedb1e;p=secnet.git polypath.c: Fix a compiler warning polypath.c:520:20: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context] 520 | *allreasonable *= reasonable; | ^~ This is not really a very helpful suggstion because there is no &&=. Happily the compiler doesn't (currently) complain about &= which is the same when both arguments are bools. Signed-off-by: Ian Jackson --- diff --git a/polypath.c b/polypath.c index d47bef7..64284a3 100644 --- a/polypath.c +++ b/polypath.c @@ -517,7 +517,7 @@ static void polypath_sendmsg_interf(struct polypath *st, "%s has no suitable address to transmit %s", interf->name, af_name(af)); - *allreasonable *= reasonable; + *allreasonable &= reasonable; } static bool_t polypath_sendmsg(void *commst, struct buffer_if *buf,