Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/msg.c @ 25061:575b2b9f3ac9
Fix some warnings in some sometimes-commented-out debug messages.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 05 Feb 2009 04:23:14 +0000 |
parents | 8ee34225cfd9 |
children | 15fc25014ce2 4460eab56456 |
comparison
equal
deleted
inserted
replaced
25056:b0c75121cf66 | 25061:575b2b9f3ac9 |
---|---|
78 g_return_val_if_fail(msg != NULL, NULL); | 78 g_return_val_if_fail(msg != NULL, NULL); |
79 | 79 |
80 msg->ref_count++; | 80 msg->ref_count++; |
81 | 81 |
82 #ifdef MSN_DEBUG_MSG | 82 #ifdef MSN_DEBUG_MSG |
83 purple_debug_info("msn", "message ref (%p)[%d]\n", msg, msg->ref_count); | 83 purple_debug_info("msn", "message ref (%p)[%" G_GSIZE_FORMAT "]\n", msg, msg->ref_count); |
84 #endif | 84 #endif |
85 | 85 |
86 return msg; | 86 return msg; |
87 } | 87 } |
88 | 88 |
93 g_return_val_if_fail(msg->ref_count > 0, NULL); | 93 g_return_val_if_fail(msg->ref_count > 0, NULL); |
94 | 94 |
95 msg->ref_count--; | 95 msg->ref_count--; |
96 | 96 |
97 #ifdef MSN_DEBUG_MSG | 97 #ifdef MSN_DEBUG_MSG |
98 purple_debug_info("msn", "message unref (%p)[%d]\n", msg, msg->ref_count); | 98 purple_debug_info("msn", "message unref (%p)[%" G_GSIZE_FORMAT "]\n", msg, msg->ref_count); |
99 #endif | 99 #endif |
100 | 100 |
101 if (msg->ref_count == 0) | 101 if (msg->ref_count == 0) |
102 { | 102 { |
103 msn_message_destroy(msg); | 103 msn_message_destroy(msg); |