From 3b1b9d4638f0b92c161453f2896355183296803f Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 1 Dec 2008 09:41:41 +0000 Subject: gethostbyname can use gethostbyname2, saving one nearly 0.5k static buffer text data bss dec hex filename - 45 0 480 525 20d libc/inet/gethostbyname.o + 18 0 0 18 12 libc/inet/gethostbyname.o --- include/netdb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/netdb.h b/include/netdb.h index 99ba243f5..7d76b9c26 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -159,6 +159,7 @@ libc_hidden_proto(gethostbyname) or due to the implementation it is a cancellation point and therefore not marked with __THROW. */ extern struct hostent *gethostbyname2 (__const char *__name, int __af); +libc_hidden_proto(gethostbyname2) /* Reentrant versions of the functions above. The additional arguments specify a buffer of BUFLEN starting at BUF. The last -- cgit v1.2.3