chiark
/
gitweb
/
~mdw
/
yaid
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
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 17a27a83c2aef5c8d5f1407eef7773813250f49e..b37f7f4a5368a1aa12d14c27fb6fabf01a1820c3 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';
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++;
else return (-1);
y = (y << 4) | x;
p++;