pidgin: 9aa42ac1: dns: Avoid two warnings when building wi...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Sat Oct 31 23:15:32 EDT 2009


-----------------------------------------------------------------
Revision: 9aa42ac12c29a38b88df8f997c1e9e496234180d
Ancestor: f18e8828254cc3882e72d3e2af1af3dfa805729e
Author: darkrain42 at pidgin.im
Date: 2009-10-31T22:25:22
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/9aa42ac12c29a38b88df8f997c1e9e496234180d

Modified files:
        libpurple/dnsquery.c libpurple/dnssrv.c

ChangeLog: 

dns: Avoid two warnings when building with --disable-idn.

-------------- next part --------------
============================================================
--- libpurple/dnsquery.c	f884d7b175f6f02bfb79540d061898a28f712a77
+++ libpurple/dnsquery.c	bc92bfea1af919b6b93181950d4a922e55053a73
@@ -172,6 +172,7 @@ resolve_ip(PurpleDnsQueryData *query_dat
 	return FALSE;
 }
 
+#ifdef USE_IDN
 static gboolean
 dns_str_is_ascii(const char *name)
 {
@@ -183,6 +184,7 @@ dns_str_is_ascii(const char *name)
 
 	return TRUE;
 }
+#endif
 
 #if defined(PURPLE_DNSQUERY_USE_FORK)
 
============================================================
--- libpurple/dnssrv.c	fffab36e14868796e7e243510448d448362d09c1
+++ libpurple/dnssrv.c	10a0c7060220d0a1bb70766f3e79a4471546ba25
@@ -248,6 +248,7 @@ purple_srv_sort(GList *list)
 	return list;
 }
 
+#ifdef USE_IDN
 static gboolean
 dns_str_is_ascii(const char *name)
 {
@@ -259,6 +260,7 @@ dns_str_is_ascii(const char *name)
 
 	return TRUE;
 }
+#endif
 
 #ifndef _WIN32
 


More information about the Commits mailing list