projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b5f054
)
fix bogus return values for inet_pton
author
Rich Felker
<dalias@aerifal.cx>
Thu, 21 Apr 2011 20:57:00 +0000
(16:57 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 21 Apr 2011 20:57:00 +0000
(16:57 -0400)
src/network/inet_pton.c
patch
|
blob
|
history
diff --git
a/src/network/inet_pton.c
b/src/network/inet_pton.c
index 349c4025079d699b53fcd732a59315e716b05757..b7f4834fc98ae3ebf5aba6a23fe93c606afd3538 100644
(file)
--- a/
src/network/inet_pton.c
+++ b/
src/network/inet_pton.c
@@
-21,11
+21,11
@@
int inet_pton(int af, const char *s, void *a0)
return 0;
s=z+1;
}
- return
0
;
+ return
1
;
} else if (af==AF_INET6) {
return !__ipparse(a, AF_INET6, s);
}
errno = EAFNOSUPPORT;
- return
0
;
+ return
-1
;
}