/pidgin/main: 3f1be2d7ae11: Gadu-Gadu: fix some warnings
Tomasz Wasilczyk
tomkiewicz at cpw.pidgin.im
Mon Apr 8 10:48:27 EDT 2013
Changeset: 3f1be2d7ae11b54529338d94c9529c60794a7fe2
Author: Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date: 2013-04-08 16:48 +0200
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/3f1be2d7ae11
Description:
Gadu-Gadu: fix some warnings
diffstat:
libpurple/protocols/gg/account.c | 2 +-
libpurple/protocols/gg/avatar.c | 2 +-
libpurple/protocols/gg/image.c | 2 +-
libpurple/protocols/gg/libgadu-events.c | 4 ++--
libpurple/protocols/gg/oauth/oauth-purple.c | 2 +-
libpurple/protocols/gg/pubdir-prpl.c | 2 +-
6 files changed, 7 insertions(+), 7 deletions(-)
diffs (74 lines):
diff --git a/libpurple/protocols/gg/account.c b/libpurple/protocols/gg/account.c
--- a/libpurple/protocols/gg/account.c
+++ b/libpurple/protocols/gg/account.c
@@ -432,7 +432,7 @@ static void ggp_account_chpass_data_free
void ggp_account_chpass(PurpleConnection *gc)
{
ggp_account_chpass_data *chpass_data;
- void ggp_account_change_passwd(PurpleConnection *gc);
+
purple_debug_info("gg", "ggp_account_chpass\n");
chpass_data = g_new0(ggp_account_chpass_data, 1);
diff --git a/libpurple/protocols/gg/avatar.c b/libpurple/protocols/gg/avatar.c
--- a/libpurple/protocols/gg/avatar.c
+++ b/libpurple/protocols/gg/avatar.c
@@ -362,7 +362,7 @@ static void ggp_avatar_own_got_token(Pur
"Host: avatars.nowe.gg\r\n"
"Authorization: %s\r\n"
"From: avatars to avatars\r\n"
- "Content-Length: %zu\r\n"
+ "Content-Length: %" G_GSIZE_FORMAT "\r\n"
"Content-Type: application/x-www-form-urlencoded\r\n"
"\r\n%s",
token, strlen(request_data), request_data);
diff --git a/libpurple/protocols/gg/image.c b/libpurple/protocols/gg/image.c
--- a/libpurple/protocols/gg/image.c
+++ b/libpurple/protocols/gg/image.c
@@ -152,7 +152,7 @@ ggp_image_prepare_result ggp_image_prepa
image_crc = gg_crc32(0, image_data, image_size);
purple_debug_info("gg", "ggp_image_prepare_to_send: image prepared "
- "[id=%d, crc=%u, size=%zu, filename=%s]\n",
+ "[id=%d, crc=%u, size=%" G_GSIZE_FORMAT ", filename=%s]\n",
id, image_crc, image_size, image_filename);
pending_image = g_new(ggp_image_pending_image, 1);
diff --git a/libpurple/protocols/gg/libgadu-events.c b/libpurple/protocols/gg/libgadu-events.c
--- a/libpurple/protocols/gg/libgadu-events.c
+++ b/libpurple/protocols/gg/libgadu-events.c
@@ -38,8 +38,8 @@ void ggp_events_user_data(PurpleConnecti
int user_idx;
gboolean is_update;
- purple_debug_info("gg", "GG_EVENT_USER_DATA [type=%d, user_count=%zu]\n",
- data->type, data->user_count);
+ purple_debug_info("gg", "GG_EVENT_USER_DATA [type=%d, user_count=%"
+ G_GSIZE_FORMAT "]\n", data->type, data->user_count);
/*
type =
diff --git a/libpurple/protocols/gg/oauth/oauth-purple.c b/libpurple/protocols/gg/oauth/oauth-purple.c
--- a/libpurple/protocols/gg/oauth/oauth-purple.c
+++ b/libpurple/protocols/gg/oauth/oauth-purple.c
@@ -169,7 +169,7 @@ static void ggp_oauth_request_token_got(
request = g_strdup_printf(
"POST /authorize HTTP/1.1\r\n"
"Host: login.gadu-gadu.pl\r\n"
- "Content-Length: %zu\r\n"
+ "Content-Length: %" G_GSIZE_FORMAT "\r\n"
"Content-Type: application/x-www-form-urlencoded\r\n"
"\r\n%s",
strlen(request_data), request_data);
diff --git a/libpurple/protocols/gg/pubdir-prpl.c b/libpurple/protocols/gg/pubdir-prpl.c
--- a/libpurple/protocols/gg/pubdir-prpl.c
+++ b/libpurple/protocols/gg/pubdir-prpl.c
@@ -973,7 +973,7 @@ static void ggp_pubdir_set_info_got_toke
"PUT /users/%u.xml HTTP/1.1\r\n"
"Host: api.gadu-gadu.pl\r\n"
"%s\r\n"
- "Content-Length: %zu\r\n"
+ "Content-Length: %" G_GSIZE_FORMAT "\r\n"
"Content-Type: application/x-www-form-urlencoded\r\n"
"\r\n%s",
uin, token, strlen(request_data), request_data);
More information about the Commits
mailing list