diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2003-06-19 07:57:11 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2003-06-19 07:57:11 +0000 |
| commit | 97cbd1c72802b6e5eea9a7e23f27bed30e8c75e6 (patch) | |
| tree | 701c8c56f75a6ce738720b6ebea9fe7274ab20ac | |
| parent | 1b8d837cd0ec9c0a81748bb66085d2297aab7e52 (diff) | |
Notes
| -rw-r--r-- | lib/libc/net/gethostnamadr.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c index fdcabc7f4306..f5c3382ffc8f 100644 --- a/lib/libc/net/gethostnamadr.c +++ b/lib/libc/net/gethostnamadr.c @@ -116,25 +116,6 @@ gethostbyaddr(const char *addr, int len, int type) return hp; } -struct hostent_data; - -/* - * Temporary function (not thread safe) - */ -int gethostbyaddr_r(const char *addr, int len, int type, - struct hostent *result, struct hostent_data *buffer) -{ - struct hostent *hp; - int ret; - if ((hp = gethostbyaddr(addr, len, type)) == NULL) { - ret = -1; - } else { - memcpy(result, hp, sizeof(struct hostent)); - ret = 0; - } - return(ret); -} - void sethostent(stayopen) int stayopen; |
