OSDN Git Service

This is a touch cleaner, avoids using the comma operator.
authorEric Andersen <andersen@codepoet.org>
Fri, 23 Feb 2001 08:18:48 +0000 (08:18 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 23 Feb 2001 08:18:48 +0000 (08:18 -0000)
libc/inet/resolv.c

index 4e82776..9245840 100644 (file)
@@ -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++;