Mercurial > pidgin.yaz
changeset 27380:e9279f0e551a
Convert all uses of PURPLE_UNSAFE_DEBUG to the new API I added.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sat, 04 Jul 2009 23:33:01 +0000 |
parents | a22ef93d6aec |
children | da88e682069d |
files | libpurple/protocols/msn/soap.c libpurple/util.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/soap.c Sat Jul 04 19:01:16 2009 +0000 +++ b/libpurple/protocols/msn/soap.c Sat Jul 04 23:33:01 2009 +0000 @@ -80,7 +80,7 @@ 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; }
--- a/libpurple/util.c Sat Jul 04 19:01:16 2009 +0000 +++ b/libpurple/util.c Sat Jul 04 23:33:01 2009 +0000 @@ -4042,7 +4042,7 @@ } } - 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 @@ 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);