pidgin: 11d28a93: Strip trailing whitespace and spaces to ...

markdoliner at pidgin.im markdoliner at pidgin.im
Mon Jun 29 01:05:40 EDT 2009


-----------------------------------------------------------------
Revision: 11d28a9362597cbea7fa0957f4202037131a3d6b
Ancestor: 482bf8040f6ada27cb8355d40e9a6406a4e811e0
Author: markdoliner at pidgin.im
Date: 2009-06-29T05:02:24
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/11d28a9362597cbea7fa0957f4202037131a3d6b

Modified files:
        libpurple/dnssrv.c

ChangeLog: 

Strip trailing whitespace and spaces to tab

-------------- next part --------------
============================================================
--- libpurple/dnssrv.c	bff87e8353d0a656f6ad248732109149616c6924
+++ libpurple/dnssrv.c	791a8be0b1e30b593327fbf6f13d8ebaf6d635ff
@@ -66,7 +66,7 @@ struct _PurpleTxtResponse {
 #endif
 
 struct _PurpleTxtResponse {
-    char *content;
+	char *content;
 };
 
 struct _PurpleSrvQueryData {
@@ -335,13 +335,13 @@ res_main_thread_cb(gpointer data)
 			query_data->results = NULL;
 
 			purple_debug_info("dnssrv", "found %d SRV entries\n", size);
-			
+
 			if(query_data->cb.srv) query_data->cb.srv(srvres, size, query_data->extradata);
 		} else if (query_data->type == DNS_TYPE_TXT) {
 			GSList *lst = query_data->results;
 
 			purple_debug_info("dnssrv", "found %d TXT entries\n", g_slist_length(lst));
-			
+
 			if (query_data->cb.txt) {
 				query_data->results = NULL;
 				query_data->cb.txt(lst, query_data->extradata);
@@ -382,7 +382,7 @@ res_thread(gpointer data)
 			GSList *lst = NULL;
 			DNS_SRV_DATA *srv_data;
 			PurpleSrvResponse *srvres;
-			
+
 			for (dr_tmp = dr; dr_tmp != NULL; dr_tmp = dr_tmp->pNext) {
 				/* Discard any incorrect entries. I'm not sure if this is necessary */
 				if (dr_tmp->wType != type || strcmp(dr_tmp->pName, query_data->query) != 0) {
@@ -396,7 +396,7 @@ res_thread(gpointer data)
 				srvres->pref = srv_data->wPriority;
 				srvres->port = srv_data->wPort;
 				srvres->weight = srv_data->wWeight;
-				
+
 				lst = g_slist_insert_sorted(lst, srvres, responsecompare);
 			}
 
@@ -431,7 +431,7 @@ res_thread(gpointer data)
 			MyDnsRecordListFree(dr, DnsFreeRecordList);
 			query_data->results = lst;
 		} else {
-			
+
 		}
 	}
 
@@ -500,10 +500,9 @@ purple_srv_resolve(const char *protocol,
 
 	internal_query.type = T_SRV;
 	strncpy(internal_query.query, query, 255);
-	
+
 	if (write(in[1], &internal_query, sizeof(internal_query)) < 0)
 		purple_debug_error("dnssrv", "Could not write to SRV resolver\n");
-	
 
 	query_data = g_new0(PurpleSrvQueryData, 1);
 	query_data->type = T_SRV;
@@ -596,10 +595,10 @@ PurpleSrvQueryData *purple_txt_resolve(c
 
 	close(out[1]);
 	close(in[0]);
-	
+
 	internal_query.type = T_TXT;
 	strncpy(internal_query.query, query, 255);
-	
+
 	if (write(in[1], &internal_query, sizeof(internal_query)) < 0)
 		purple_debug_error("dnssrv", "Could not write to TXT resolver\n");
 


More information about the Commits mailing list