Add return value for inet_aton
This commit is contained in:
parent
6847ae689a
commit
3f3adf0c0e
|
@ -152,6 +152,7 @@ int inet_aton(const char *cp, struct in_addr *inp)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
inp->s_addr = addr;
|
inp->s_addr = addr;
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue