pidgin: 14914ce2: Convert all uses of PURPLE_UNSAFE_DEBUG ...

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Sat Jul 4 22:31:09 EDT 2009


-----------------------------------------------------------------
Revision: 14914ce25f5c801db9a3d3b425179476a9a22028
Ancestor: fd042fd7c9690d11988649389cdf668c9405959a
Author: rekkanoryo at pidgin.im
Date: 2009-07-04T23:33:01
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/14914ce25f5c801db9a3d3b425179476a9a22028

Modified files:
        libpurple/protocols/msn/soap.c libpurple/util.c

ChangeLog: 

Convert all uses of PURPLE_UNSAFE_DEBUG to the new API I added.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/soap.c	7fe7ef8a85ab2161d95c9228002710884224005a
+++ libpurple/protocols/msn/soap.c	084bc62f4b062ee41d7b5c877eb49e714c4e27a1
@@ -80,7 +80,7 @@ msn_soap_connection_new(MsnSession *sess
 	conn->session = session;
 	conn->host = g_strdup(host);
 	conn->queue = g_queue_new();
-	conn->unsafe_debug = g_getenv("PURPLE_UNSAFE_DEBUG") != NULL;
+	conn->unsafe_debug = purple_debug_is_unsafe();
 	return conn;
 }
 
============================================================
--- libpurple/util.c	6b4549c5dd8718339294fe4cd213785046a00e40
+++ libpurple/util.c	c0d936e8bc2bf3b33677a3eac85f0c31dce5bcb5
@@ -4042,7 +4042,7 @@ url_fetch_send_cb(gpointer data, gint so
 		}
 	}
 
-	if(g_getenv("PURPLE_UNSAFE_DEBUG"))
+	if(purple_debug_is_unsafe())
 		purple_debug_misc("util", "Request: '%s'\n", gfud->request);
 	else
 		purple_debug_misc("util", "request constructed\n");
@@ -4159,7 +4159,7 @@ purple_util_fetch_url_request_len_with_a
 	g_return_val_if_fail(url      != NULL, NULL);
 	g_return_val_if_fail(callback != NULL, NULL);
 
-	if(g_getenv("PURPLE_UNSAFE_DEBUG"))
+	if(purple_debug_is_unsafe())
 		purple_debug_info("util",
 				 "requested to fetch (%s), full=%d, user_agent=(%s), http11=%d\n",
 				 url, full, user_agent?user_agent:"(null)", http11);


More information about the Commits mailing list