From: Volker Lendecke Date: Wed, 25 Jul 2007 18:45:57 +0000 (+0000) Subject: r24047: With -Wmissing-prototypes these two always generate warnings. They X-Git-Tag: samba-4.0.0alpha6~801^2~5247 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e066d5ee1b2e8d15a7af80313eb2b622a511b00;p=thirdparty%2Fsamba.git r24047: With -Wmissing-prototypes these two always generate warnings. They should be properly prototyped. For now, gloss over the warning. (This used to be commit 2137158260cc9677bf9652a3d85334b0d7512b7b) --- diff --git a/source3/utils/net_dns.c b/source3/utils/net_dns.c index fed5fa556ea..6163f53c6e5 100644 --- a/source3/utils/net_dns.c +++ b/source3/utils/net_dns.c @@ -26,6 +26,14 @@ #if defined(WITH_DNS_UPDATES) +/* + * Silly prototype to get rid of a warning + */ + +DNS_ERROR DoDNSUpdate(char *pszServerName, + const char *pszDomainName, const char *pszHostName, + const struct in_addr *iplist, size_t num_addrs ); + /********************************************************************* *********************************************************************/ @@ -159,6 +167,12 @@ int get_my_ip_address( struct in_addr **ips ) return count; } +/* + * Silly prototype to get rid of a warning + */ + +DNS_ERROR do_gethostbyname(const char *server, const char *host); + DNS_ERROR do_gethostbyname(const char *server, const char *host) { struct dns_connection *conn;