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!
This commit is contained in:
Aaron Jones 2017-07-31 05:54:10 +00:00
parent 82e920102f
commit f54e6c3558
No known key found for this signature in database
GPG key ID: 8AF0737488AB3012

View file

@ -1266,7 +1266,10 @@ inet_ntop6(const unsigned char *src, char *dst, unsigned int size)
if(words[i] == 0) if(words[i] == 0)
{ {
if(cur.base == -1) if(cur.base == -1)
cur.base = i, cur.len = 1; {
cur.base = i;
cur.len = 1;
}
else else
cur.len++; cur.len++;
} }