From 611404b83e10fb82a62c7649f5800ae294dedb1e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 19 Nov 2019 01:16:29 +0000 Subject: [PATCH] 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 --- polypath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.2