diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-02-23 08:18:48 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-02-23 08:18:48 +0000 |
commit | ec68a1fa64d8476bf54b1a1937577f3b1769371c (patch) | |
tree | 1b5412cc0dc5d7d4dd6a6eae43670bc3dfd3d27a /libc | |
parent | 715fe9e2e741789af486e655a0f5b43977a61e50 (diff) |
This is a touch cleaner, avoids using the comma operator.
Diffstat (limited to 'libc')
-rw-r--r-- | libc/inet/resolv.c | 5 |
1 files changed, 3 insertions, 2 deletions
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++; |