changeset 12317:1baf4cbcf84d

[gaim-migrate @ 14621] Warning fixes. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sun, 04 Dec 2005 17:47:05 +0000
parents d5088e83fe0c
children e346a085bb4f
files src/protocols/oscar/oscar.c src/protocols/sametime/meanwhile/mw_debug.c src/protocols/silc/chat.c
diffstat 3 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Sun Dec 04 17:44:01 2005 +0000
+++ b/src/protocols/oscar/oscar.c	Sun Dec 04 17:47:05 2005 +0000
@@ -6892,7 +6892,7 @@
 	GaimGroup *g;
 	GaimBuddy *b;
 	struct aim_ssi_item *curitem;
-	int tmp;
+	fu32_t tmp;
 	va_list ap;
 	fu16_t fmtver, numitems;
 	struct aim_ssi_item *items;
@@ -8393,7 +8393,7 @@
 
 	frame = gaim_plugin_pref_frame_new();
 
-#if USE_PRPL_PREFERENCES
+#ifdef USE_PRPL_PREFERENCES
 	ppref = gaim_plugin_pref_new_with_name_and_label("/plugins/prpl/oscar/recent_buddies", _("Use recent buddies group"));
 	gaim_plugin_pref_frame_add(frame, ppref);
 
--- a/src/protocols/sametime/meanwhile/mw_debug.c	Sun Dec 04 17:44:01 2005 +0000
+++ b/src/protocols/sametime/meanwhile/mw_debug.c	Sun Dec 04 17:47:05 2005 +0000
@@ -92,7 +92,7 @@
   }
   pretty_print(str, buf, len);
 
-  g_debug(str->str);
+  g_debug("%s", str->str);
   g_string_free(str, TRUE);
 }
 
@@ -132,7 +132,7 @@
 void mw_mailme_datav(const guchar *buf, gsize len,
 		     const char *info, va_list args) {
 
-#if MW_MAILME
+#if defined(MW_MAILME) && MW_MAILME
   GString *str;
   char *txt;
 
--- a/src/protocols/silc/chat.c	Sun Dec 04 17:44:01 2005 +0000
+++ b/src/protocols/silc/chat.c	Sun Dec 04 17:47:05 2005 +0000
@@ -150,7 +150,7 @@
 	if (channel->mode) {
 		g_string_append_printf(s, _("<br><b>Channel Modes:</b> "));
 		silcgaim_get_chmode_string(channel->mode, tmp, sizeof(tmp));
-		g_string_append_printf(s, tmp);
+		g_string_append(s, tmp);
 	}
 
 	if (channel->founder_key) {