/pidgin/main: 261e15fb8b91: Fix a few warnings

Daniel Atallah datallah at pidgin.im
Mon Feb 11 23:15:45 EST 2013


Changeset: 261e15fb8b91a0cca6318e5272b5e2fb944a59b8
Author:	 Daniel Atallah <datallah at pidgin.im>
Date:	 2013-02-11 23:15 -0500
Branch:	 release-2.x.y
URL: http://hg.pidgin.im/pidgin/main/rev/261e15fb8b91

Description:

Fix a few warnings

diffstat:

 libpurple/protocols/jabber/jabber.c |  4 ++--
 libpurple/protocols/yahoo/libymsg.c |  2 +-
 pidgin/gtkdialogs.c                 |  4 ++--
 pidgin/plugins/timestamp_format.c   |  2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diffs (65 lines):

diff --git a/libpurple/protocols/jabber/jabber.c b/libpurple/protocols/jabber/jabber.c
--- a/libpurple/protocols/jabber/jabber.c
+++ b/libpurple/protocols/jabber/jabber.c
@@ -666,7 +666,7 @@ jabber_recv_cb_ssl(gpointer data, Purple
 	else {
 		gchar *tmp;
 		if (len == 0)
-			tmp = g_strdup_printf(_("Server closed the connection"));
+			tmp = g_strdup(_("Server closed the connection"));
 		else
 			tmp = g_strdup_printf(_("Lost connection with server: %s"),
 					g_strerror(errno));
@@ -724,7 +724,7 @@ jabber_recv_cb(gpointer data, gint sourc
 	} else {
 		gchar *tmp;
 		if (len == 0)
-			tmp = g_strdup_printf(_("Server closed the connection"));
+			tmp = g_strdup(_("Server closed the connection"));
 		else
 			tmp = g_strdup_printf(_("Lost connection with server: %s"),
 					g_strerror(errno));
diff --git a/libpurple/protocols/yahoo/libymsg.c b/libpurple/protocols/yahoo/libymsg.c
--- a/libpurple/protocols/yahoo/libymsg.c
+++ b/libpurple/protocols/yahoo/libymsg.c
@@ -2267,7 +2267,7 @@ static void yahoo_process_authresp(Purpl
 	case 52:
 		/* See #9660. As much as we know, reconnecting shouldn't hurt */
 		purple_debug_info("yahoo", "Got error 52, Set to autoreconnect\n");
-		msg = g_strdup_printf(_("Unknown error 52.  Reconnecting should fix this."));
+		msg = g_strdup(_("Unknown error 52.  Reconnecting should fix this."));
 		reason = PURPLE_CONNECTION_ERROR_NETWORK_ERROR;
 		break;
 	case 1013:
diff --git a/pidgin/gtkdialogs.c b/pidgin/gtkdialogs.c
--- a/pidgin/gtkdialogs.c
+++ b/pidgin/gtkdialogs.c
@@ -515,14 +515,14 @@ void pidgin_dialogs_about(void)
 			  "\tXMPP MUC: devel at conference.pidgin.im<BR><BR>"), PURPLE_WEBSITE,
 			"http://developer.pidgin.im/wiki/FAQ");
 
-	g_string_append_printf(str,
+	g_string_append(str,
 			"<font size=\"4\"><b>Help for Oracle Employees</b></font> is "
 			"available from your normal internal helpdesk or IT department.  "
 			"The Pidgin developer and user communities cannot assist you in "
 			"the configuration or use of Pidgin within Oracle, as we know "
 			"nothing of Oracle's infrastructure.<br/><br/>");
 
-	g_string_append_printf(str,
+	g_string_append(str,
 			_("<font size=\"4\"><b>Help from other Pidgin users</b></font> is "
 			  "available by e-mailing <a "
 			  "href=\"mailto:support at pidgin.im\">support at pidgin.im</a><br/>"
diff --git a/pidgin/plugins/timestamp_format.c b/pidgin/plugins/timestamp_format.c
--- a/pidgin/plugins/timestamp_format.c
+++ b/pidgin/plugins/timestamp_format.c
@@ -35,7 +35,7 @@ get_plugin_pref_frame(PurplePlugin *plug
 	ppref = purple_plugin_pref_new_with_label(_("Timestamp Format Options"));
 	purple_plugin_pref_frame_add(frame, ppref);
 
-	tmp = g_strdup_printf(_("_Force timestamp format:"));
+	tmp = g_strdup(_("_Force timestamp format:"));
 	ppref = purple_plugin_pref_new_with_name_and_label(
 			"/plugins/gtk/timestamp_format/force",
 			tmp);



More information about the Commits mailing list