OSDN Git Service
(root)
/
uclinux-h8
/
uclibc-ng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
715fe9e
)
This is a touch cleaner, avoids using the comma operator.
author
Eric Andersen
<andersen@codepoet.org>
Fri, 23 Feb 2001 08:18:48 +0000
(08:18 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Fri, 23 Feb 2001 08:18:48 +0000
(08:18 -0000)
libc/inet/resolv.c
patch
|
blob
|
history
diff --git
a/libc/inet/resolv.c
b/libc/inet/resolv.c
index
4e82776
..
9245840
100644
(file)
--- 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++;