Преглед на файлове

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

Eric Andersen преди 24 години
родител
ревизия
ec68a1fa64
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  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++;