pidgin: f45aaa12: Payload length is an int here, so treat ...
markdoliner at pidgin.im
markdoliner at pidgin.im
Fri Jun 6 18:56:00 EDT 2008
-----------------------------------------------------------------
Revision: f45aaa12123c851ab2a9a59fb2cdba78c751044e
Ancestor: fbb2c447353ac003d5a2f8b37513903eee9edcec
Author: markdoliner at pidgin.im
Date: 2008-06-06T22:51:17
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/f45aaa12123c851ab2a9a59fb2cdba78c751044e
Modified files:
libpurple/protocols/msn/notification.c
libpurple/protocols/msn/transaction.h
ChangeLog:
Payload length is an int here, so treat it as such. Get's rid of this warning:
notification.c: In function âmsn_notification_post_adlâ:
notification.c:643: warning: format â%luâ expects type âlong unsigned intâ, but argument 4 has type âintâ
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c 823b2ed67e8f6f2d1159f0ba61f80d61ec18843b
+++ libpurple/protocols/msn/notification.c bf426c63b81287ba21ab95726728e09b11aa88b4
@@ -640,7 +640,7 @@ msn_notification_post_adl(MsnCmdProc *cm
{
MsnTransaction *trans;
purple_debug_info("MSN Notification","Sending ADL with payload: %s\n", payload);
- trans = msn_transaction_new(cmdproc, "ADL","%" G_GSIZE_FORMAT, payload_len);
+ trans = msn_transaction_new(cmdproc, "ADL", "%i", payload_len);
msn_transaction_set_payload(trans, payload, payload_len);
msn_cmdproc_send_trans(cmdproc, trans);
}
============================================================
--- libpurple/protocols/msn/transaction.h bd555ceb102d86e853184ab822d2468a40976250
+++ libpurple/protocols/msn/transaction.h a1a8b8255319bf6af43f1b8999b11ae6a6b3bc81
@@ -62,7 +62,7 @@ MsnTransaction *msn_transaction_new(MsnC
};
MsnTransaction *msn_transaction_new(MsnCmdProc *cmdproc, const char *command,
- const char *format, ...) G_GNUC_PRINTF(3, 4);
+ const char *format, ...) G_GNUC_PRINTF(3, 4);
void msn_transaction_destroy(MsnTransaction *trans);
char *msn_transaction_to_string(MsnTransaction *trans);
More information about the Commits
mailing list