From ec68a1fa64d8476bf54b1a1937577f3b1769371c Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 23 Feb 2001 08:18:48 +0000 Subject: This is a touch cleaner, avoids using the comma operator. --- libc/inet/resolv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libc/inet/resolv.c') diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index 4e82776a5..9245840ca 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -167,8 +167,9 @@ int decode_dotted(const unsigned char *data, int offset, if (!data) return -1; - while ((measure && total++), (l=data[offset++])) { - + while ((l=data[offset++])) { + if (measure) + total++; if ((l & 0xc0) == (0xc0)) { if (measure) total++; -- cgit v1.2.3