chiark
/
gitweb
/
~mdw
/
yaid
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux.c (parseaddr_ipv6): Fix operator spacing.
[yaid]
/
linux.c
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++;