From 93b8f941f2de1bd110265dd7585710ac30548928 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Fri, 24 Feb 2012 11:04:42 -0800 Subject: [PATCH] Revert "Use the new NativeDaemonConnector style." The other changes relating to this were already reverted. This reverts commit 1625c7a837d73b6729f97edb32c497d289c0220c --- libc/netbsd/net/getaddrinfo.c | 2 +- libc/netbsd/net/getnameinfo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/netbsd/net/getaddrinfo.c b/libc/netbsd/net/getaddrinfo.c index 6aee69741..6ae6e3e43 100644 --- a/libc/netbsd/net/getaddrinfo.c +++ b/libc/netbsd/net/getaddrinfo.c @@ -461,7 +461,7 @@ android_getaddrinfo_proxy( // Send the request. proxy = fdopen(sock, "r+"); - if (fprintf(proxy, "0 getaddrinfo %s %s %d %d %d %d", + if (fprintf(proxy, "getaddrinfo %s %s %d %d %d %d", hostname == NULL ? "^" : hostname, servname == NULL ? "^" : servname, hints == NULL ? -1 : hints->ai_flags, diff --git a/libc/netbsd/net/getnameinfo.c b/libc/netbsd/net/getnameinfo.c index 313b2bf36..d3d0011b9 100644 --- a/libc/netbsd/net/getnameinfo.c +++ b/libc/netbsd/net/getnameinfo.c @@ -187,7 +187,7 @@ android_gethostbyaddr_proxy(struct hostent* hp, const void *addr, socklen_t addr if (addrStr == NULL) { goto exit; } - if (fprintf(proxy, "0 gethostbyaddr %s %d %d", addrStr, addrLen, addrFamily) < 0) { + if (fprintf(proxy, "gethostbyaddr %s %d %d", addrStr, addrLen, addrFamily) < 0) { goto exit; }