From f54e6c35588084dee7431f4fbb665b254e360c60 Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Mon, 31 Jul 2017 05:54:10 +0000 Subject: [PATCH] libratbox/src/commio.c: misc cleanup for compiler warning commio.c:1269:17: warning: possible misuse of comma operator here [-Wcomma] What an ugly way to use commas! --- libratbox/src/commio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libratbox/src/commio.c b/libratbox/src/commio.c index ba0e0f1d..5607468f 100644 --- a/libratbox/src/commio.c +++ b/libratbox/src/commio.c @@ -1266,7 +1266,10 @@ inet_ntop6(const unsigned char *src, char *dst, unsigned int size) if(words[i] == 0) { if(cur.base == -1) - cur.base = i, cur.len = 1; + { + cur.base = i; + cur.len = 1; + } else cur.len++; }