projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math.h: make __FLOAT_BITS and __DOUBLE_BITS C89
[musl]
/
src
/
network
/
gethostbyname2_r.c
diff --git
a/src/network/gethostbyname2_r.c
b/src/network/gethostbyname2_r.c
index
49e4e53
..
27eb080
100644
(file)
--- a/
src/network/gethostbyname2_r.c
+++ b/
src/network/gethostbyname2_r.c
@@
-5,7
+5,7
@@
#include <string.h>
#include <netinet/in.h>
#include <errno.h>
#include <string.h>
#include <netinet/in.h>
#include <errno.h>
-#include <
inttypes
.h>
+#include <
stdint
.h>
int gethostbyname2_r(const char *name, int af,
struct hostent *h, char *buf, size_t buflen,
int gethostbyname2_r(const char *name, int af,
struct hostent *h, char *buf, size_t buflen,
@@
-30,7
+30,6
@@
int gethostbyname2_r(const char *name, int af,
buflen -= sizeof(char *)-i;
}
buflen -= sizeof(char *)-i;
}
- getaddrinfo(name, 0, &hint, &ai);
switch (getaddrinfo(name, 0, &hint, &ai)) {
case EAI_NONAME:
*err = HOST_NOT_FOUND;
switch (getaddrinfo(name, 0, &hint, &ai)) {
case EAI_NONAME:
*err = HOST_NOT_FOUND;