Mercurial > pidgin
changeset 27212:862b8208a546
Strip trailing whitespace and spaces to tab
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 29 Jun 2009 05:02:24 +0000 |
parents | bd85e78518b7 |
children | 3e516701dd33 1a94853d80c1 |
files | libpurple/dnssrv.c |
diffstat | 1 files changed, 9 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/dnssrv.c Mon Jun 29 00:17:57 2009 +0000 +++ b/libpurple/dnssrv.c Mon Jun 29 05:02:24 2009 +0000 @@ -66,7 +66,7 @@ #endif struct _PurpleTxtResponse { - char *content; + char *content; }; struct _PurpleSrvQueryData { @@ -335,13 +335,13 @@ 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 @@ 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 @@ 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 @@ MyDnsRecordListFree(dr, DnsFreeRecordList); query_data->results = lst; } else { - + } } @@ -500,10 +500,9 @@ 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 @@ 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");