Browse Source

This is a touch cleaner, avoids using the comma operator.

Eric Andersen 24 years ago
parent
commit
ec68a1fa64
1 changed files with 3 additions and 2 deletions
  1. 3 2
      libc/inet/resolv.c

+ 3 - 2
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++;