diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-08-25 15:29:07 +0200 | 
|---|---|---|
| committer | Austin Foxley <austinf@cetoncorp.com> | 2009-10-16 11:42:45 -0700 | 
| commit | 18d4581b84be174b66bebf0dcc5f26d2c2ddfe38 (patch) | |
| tree | 3277d205b68c624eee27539e2d2f75572d17a665 /libc/inet/resolv.c | |
| parent | 7df0796336c57edd4e4c6e4b43018181178f7797 (diff) | |
| download | uClibc-alpine-18d4581b84be174b66bebf0dcc5f26d2c2ddfe38.tar.bz2 uClibc-alpine-18d4581b84be174b66bebf0dcc5f26d2c2ddfe38.tar.xz  | |
link-time warning for obsolescent/removed network funcs
Signed-off-by: aldot <rep.dot.nop@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/inet/resolv.c')
| -rw-r--r-- | libc/inet/resolv.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index ca191ac4e..66114668c 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -2154,6 +2154,7 @@ int gethostbyname_r(const char *name,  	return i;  }  libc_hidden_def(gethostbyname_r) +link_warning(gethostbyname_r, "gethostbyname_r is obsolescent, use getnameinfo() instead.");  #endif @@ -2469,6 +2470,7 @@ int gethostbyaddr_r(const void *addr, socklen_t addrlen,  #undef in6  }  libc_hidden_def(gethostbyaddr_r) +link_warning(gethostbyaddr_r, "gethostbyaddr_r is obsolescent, use getaddrinfo() instead.");  #endif @@ -2586,6 +2588,7 @@ struct hostent *gethostbyname(const char *name)  #endif  }  libc_hidden_def(gethostbyname) +link_warning(gethostbyname, "gethostbyname is obsolescent, use getnameinfo() instead.");  #endif @@ -2607,6 +2610,7 @@ struct hostent *gethostbyaddr(const void *addr, socklen_t len, int type)  	return hp;  }  libc_hidden_def(gethostbyaddr) +link_warning(gethostbyaddr, "gethostbyaddr is obsolescent, use getaddrinfo() instead.");  #endif  | 
