pidgin: 8225619b: Fix the build on Windows of the added SR...

thijsalkemade at gmail.com thijsalkemade at gmail.com
Mon Mar 28 17:55:56 EDT 2011


----------------------------------------------------------------------
Revision: 8225619bc6916576c4c3ba198c023dbba87d8f95
Parent:   b32f89cd335eef12df02f6acce600e0775eb0cc7
Author:   thijsalkemade at gmail.com
Date:     03/28/11 17:53:46
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8225619bc6916576c4c3ba198c023dbba87d8f95

Changelog: 

Fix the build on Windows of the added SRV/TXT UI ops. Based on a patch from Josh Mueller.

Changes against parent b32f89cd335eef12df02f6acce600e0775eb0cc7

  patched  libpurple/dnssrv.c

-------------- next part --------------
============================================================
--- libpurple/dnssrv.c	2a67e00901b33608a8be01cafb66b366609fb788
+++ libpurple/dnssrv.c	45532dccc18769b8a1543f8a7bbbf47a30a8fc54
@@ -711,7 +711,7 @@ purple_srv_resolve(const char *protocol,
 	g_free(hostname);
 	
 	query_data = g_new0(PurpleSrvTxtQueryData, 1);
-	query_data->type = T_SRV;
+	query_data->type = PurpleDnsTypeSrv;
 	query_data->cb.srv = cb;
 	query_data->extradata = extradata;
 	query_data->query = query;
@@ -774,12 +774,6 @@ purple_srv_resolve(const char *protocol,
 		initialized = TRUE;
 	}
 
-	query_data = g_new0(PurpleSrvTxtQueryData, 1);
-	query_data->type = DNS_TYPE_SRV;
-	query_data->cb.srv = cb;
-	query_data->query = query;
-	query_data->extradata = extradata;
-
 	if (!MyDnsQuery_UTF8 || !MyDnsRecordListFree)
 		query_data->error_message = g_strdup("System missing DNS API (Requires W2K+)\n");
 	else {
@@ -832,7 +826,7 @@ PurpleSrvTxtQueryData *purple_txt_resolv
 	g_free(hostname);
 	
 	query_data = g_new0(PurpleSrvTxtQueryData, 1);
-	query_data->type = T_TXT;
+	query_data->type = PurpleDnsTypeTxt;
 	query_data->cb.txt = cb;
 	query_data->extradata = extradata;
 	query_data->query = query;
@@ -896,12 +890,6 @@ PurpleSrvTxtQueryData *purple_txt_resolv
 		initialized = TRUE;
 	}
 
-	query_data = g_new0(PurpleSrvTxtQueryData, 1);
-	query_data->type = DNS_TYPE_TXT;
-	query_data->cb.txt = cb;
-	query_data->query = query;
-	query_data->extradata = extradata;
-
 	if (!MyDnsQuery_UTF8 || !MyDnsRecordListFree)
 		query_data->error_message = g_strdup("System missing DNS API (Requires W2K+)\n");
 	else {


More information about the Commits mailing list