Mercurial > pidgin.yaz
diff libpurple/protocols/oscar/odc.c @ 30850:9d028dbd76f4
Change the "length of bstream" data type to be a gsize, since it represents
the size of a buffer. There's no reason this should ever be negative.
It probably shouldn't be more than 32 bits, either, but gsize still seems
more appropriate to me
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 15 Aug 2010 08:42:30 +0000 |
parents | 5661f30d1b8e |
children | c5ba7dd399fa a8cc50c2279f |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/odc.c Sat Aug 14 06:24:04 2010 +0000 +++ b/libpurple/protocols/oscar/odc.c Sun Aug 15 08:42:30 2010 +0000 @@ -90,7 +90,7 @@ ByteStream bs; purple_debug_info("oscar", "Outgoing ODC frame to %s with " - "type=0x%04x, flags=0x%04x, payload length=%u\n", + "type=0x%04x, flags=0x%04x, payload length=%" G_GSIZE_FORMAT "\n", conn->bn, frame->type, frame->flags, frame->payload.len); account = purple_connection_get_account(conn->od->gc); @@ -505,7 +505,7 @@ byte_stream_getrawbuf(bs, frame->bn, 32); purple_debug_info("oscar", "Incoming ODC frame from %s with " - "type=0x%04x, flags=0x%04x, payload length=%u\n", + "type=0x%04x, flags=0x%04x, payload length=%" G_GSIZE_FORMAT "\n", frame->bn, frame->type, frame->flags, frame->payload.len); if (!conn->ready)