changeset 23303:ac4a06685b95

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¡Ç
author Mark Doliner <mark@kingant.net>
date Fri, 06 Jun 2008 22:51:17 +0000
parents 25a350f5deff
children 02945b79a6d8 99b4470a763e
files libpurple/protocols/msn/notification.c libpurple/protocols/msn/transaction.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Fri Jun 06 22:49:43 2008 +0000
+++ b/libpurple/protocols/msn/notification.c	Fri Jun 06 22:51:17 2008 +0000
@@ -640,7 +640,7 @@
 {
 	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);
 }
--- a/libpurple/protocols/msn/transaction.h	Fri Jun 06 22:49:43 2008 +0000
+++ b/libpurple/protocols/msn/transaction.h	Fri Jun 06 22:51:17 2008 +0000
@@ -62,7 +62,7 @@
 };
 
 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);