File 0005-fix-compile-warnings.patch of Package pidgin-libnotify
From f2ed214f7db895b7d19232bdf67b281f68d67d1c Mon Sep 17 00:00:00 2001
From: Antony Dovgal <tony@daylessday.org>
Date: Fri, 14 Oct 2011 00:52:18 +0400
Subject: [PATCH 5/5] fix compile warnings
---
src/pidgin-libnotify.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/pidgin-libnotify.c b/src/pidgin-libnotify.c
index e26c442..832e919 100644
--- a/src/pidgin-libnotify.c
+++ b/src/pidgin-libnotify.c
@@ -194,7 +194,7 @@ action_cb (NotifyNotification *notification,
PurpleConversation *conv = NULL;
purple_debug_info (PLUGIN_ID, "action_cb(), "
- "notification: 0x%x, action: '%s'", notification, action);
+ "notification: 0x%lx, action: '%s'", (unsigned long)notification, action);
buddy = (PurpleBuddy *)g_object_get_data (G_OBJECT(notification), "buddy");
@@ -220,7 +220,7 @@ closed_cb (NotifyNotification *notification)
{
PurpleContact *contact;
- purple_debug_info (PLUGIN_ID, "closed_cb(), notification: 0x%x\n", notification);
+ purple_debug_info (PLUGIN_ID, "closed_cb(), notification: 0x%lx\n", (unsigned long)notification);
contact = (PurpleContact *)g_object_get_data (G_OBJECT(notification), "contact");
if (contact)
@@ -461,13 +461,13 @@ notify_new_message_cb (PurpleAccount *account,
#ifndef DEBUG /* in debug mode, always show notifications */
if (conv && purple_conversation_has_focus (conv)) {
- purple_debug_info (PLUGIN_ID, "Conversation has focus 0x%x\n", conv);
+ purple_debug_info (PLUGIN_ID, "Conversation has focus 0x%lx\n", (unsigned long)conv);
return;
}
#endif
if (conv && purple_prefs_get_bool ("/plugins/gtk/libnotify/newconvonly")) {
- purple_debug_info (PLUGIN_ID, "Conversation is not new 0x%x\n", conv);
+ purple_debug_info (PLUGIN_ID, "Conversation is not new 0x%lx\n", (unsigned long)conv);
return;
}
--
1.7.3.4