projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make type of st_dev explicitly dev_t in x86_64 stat.h
[musl]
/
src
/
network
/
inet_addr.c
diff --git
a/src/network/inet_addr.c
b/src/network/inet_addr.c
index
8413728
..
ea0a8f7
100644
(file)
--- a/
src/network/inet_addr.c
+++ b/
src/network/inet_addr.c
@@
-6,6
+6,6
@@
in_addr_t inet_addr(const char *p)
{
struct sockaddr_in sin;
- if (__ipparse(&sin, AF_INET, p)) return -1;
+ if (__ipparse(&sin, AF_INET, p)
< 0
) return -1;
return sin.sin_addr.s_addr;
}