/soc/2012/tomkiewicz/gg: c995c45e8ed9: Check result of ggp_resol...

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Thu Jul 5 13:31:49 EDT 2012


Changeset: c995c45e8ed9867f276ebd0327b0294cd2a6bbe8
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2012-06-25 00:28 +0200
Branch:	 soc.2012.gg
URL: http://hg.pidgin.im/soc/2012/tomkiewicz/gg/rev/c995c45e8ed9

Description:

Check result of ggp_resolver_purple_setup

diffstat:

 libpurple/protocols/gg/gg.c              |  4 ++--
 libpurple/protocols/gg/resolver-purple.c |  8 +++++---
 2 files changed, 7 insertions(+), 5 deletions(-)

diffs (32 lines):

diff --git a/libpurple/protocols/gg/gg.c b/libpurple/protocols/gg/gg.c
--- a/libpurple/protocols/gg/gg.c
+++ b/libpurple/protocols/gg/gg.c
@@ -2965,8 +2965,8 @@
 	PurpleAccountOption *option;
 	GList *encryption_options = NULL;
 
-	purple_debug_info("gg", "Loading Gadu-Gadu plugin with libgadu %s...\n",
-		gg_libgadu_version());
+	purple_debug_info("gg", "Loading Gadu-Gadu protocol plugin with "
+		"libgadu %s...\n", gg_libgadu_version());
 
 	option = purple_account_option_string_new(_("GG server"),
 			"gg_server", "");
diff --git a/libpurple/protocols/gg/resolver-purple.c b/libpurple/protocols/gg/resolver-purple.c
--- a/libpurple/protocols/gg/resolver-purple.c
+++ b/libpurple/protocols/gg/resolver-purple.c
@@ -28,9 +28,11 @@
 
 extern void ggp_resolver_purple_setup(void)
 {
-	purple_debug_info("gg", "setting up custom resolver\n");
-	gg_global_set_custom_resolver(ggp_resolver_purple_start,
-		ggp_resolver_purple_cleanup);
+	if (gg_global_set_custom_resolver(ggp_resolver_purple_start,
+		ggp_resolver_purple_cleanup) != 0)
+	{
+		purple_debug_error("gg", "failed to set custom resolver\n");
+	}
 }
 
 void ggp_resolver_purple_cb(GSList *hosts, gpointer cbdata,



More information about the Commits mailing list