summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArshia Ghafoori <arshia001@live.com>2024-06-26 13:06:11 +0400
committerArshia Ghafoori <arshia001@live.com>2024-06-26 13:06:11 +0400
commit3f1599f1bcba9e4c56696d64402755d810eaedd6 (patch)
tree42c056ca6f9eb35f3e08daf84ec6de0f8e63ebfc
parent65a9a3c3514866515dfaf1189dbffbacd7040fbd (diff)
Remove left-over print statementsv2024-06-26.1
-rw-r--r--libc-top-half/musl/src/network/gethostbyname2_r.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libc-top-half/musl/src/network/gethostbyname2_r.c b/libc-top-half/musl/src/network/gethostbyname2_r.c
index 9d9e05b..e277569 100644
--- a/libc-top-half/musl/src/network/gethostbyname2_r.c
+++ b/libc-top-half/musl/src/network/gethostbyname2_r.c
@@ -9,8 +9,6 @@
#include <wasi/api.h>
#include "lookup.h"
-int printf (const char *, ...);
-
int gethostbyname2_r(const char *name, int af,
struct hostent *h, char *buf, size_t buflen,
struct hostent **res, int *err)
@@ -30,8 +28,6 @@ int gethostbyname2_r(const char *name, int af,
return ENOTSUP;
}
- printf("af %d wasi_af %d\n", af, wasi_af);
-
*res = 0;
cnt = __lookup_name(addrs, canon, name, af, AI_CANONNAME);
if (cnt<0) switch (cnt) {
@@ -55,7 +51,6 @@ int gethostbyname2_r(const char *name, int af,
for (i = 0; i < total_cnt; ++i) {
if (addrs[i].family != wasi_af) {
- printf("%d family %d skipped\n", i, addrs[i].family);
--cnt;
}
}
@@ -83,7 +78,6 @@ int gethostbyname2_r(const char *name, int af,
for (i=0,j=0; i<total_cnt; i++) {
if (addrs[i].family != wasi_af) continue;
- printf("%d %d family %d reported\n", i, j, addrs[i].family);
h->h_addr_list[j] = (void *)buf;
buf += h->h_length;
memcpy(h->h_addr_list[j++], addrs[i].addr, h->h_length);