~mdw
/
yaid
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cbdfc91
)
linux.c (parseaddr_ipv6): Fix operator spacing.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 4 Feb 2016 10:22:39 +0000
(10:22 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 4 Feb 2016 10:22:39 +0000
(10:22 +0000)
Purely cosmetic.
linux.c
patch
|
blob
|
blame
|
history
diff --git
a/linux.c
b/linux.c
index
17a27a8
..
b37f7f4
100644
(file)
--- a/
linux.c
+++ b/
linux.c
@@
-64,8
+64,8
@@
static int parseaddr_ipv6(char **pp, union addr *a)
y = 0;
for (j = 0; j < 8; j++) {
if ('0' <= *p && *p <= '9') x = *p - '0';
- else if ('a' <= *p && *p <= 'f') x = *p - 'a'+ 10;
- else if ('A' <= *p && *p <= 'F') x = *p - 'A'+ 10;
+ else if ('a' <= *p && *p <= 'f') x = *p - 'a'
+ 10;
+ else if ('A' <= *p && *p <= 'F') x = *p - 'A'
+ 10;
else return (-1);
y = (y << 4) | x;
p++;