Mercurial > pidgin
diff libpurple/protocols/mxit/chunk.c @ 31292:754459ff7b23
* removed unneeded variable passing.
author | pieter.loubser@mxit.com |
---|---|
date | Thu, 13 Jan 2011 06:56:41 +0000 |
parents | 259bbfb423d4 |
children | 06371b61a840 |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/chunk.c Wed Sep 15 08:28:39 2010 +0000 +++ b/libpurple/protocols/mxit/chunk.c Thu Jan 13 06:56:41 2011 +0000 @@ -406,10 +406,9 @@ * @param chunkdata Chunked-data buffer * @param mxitId The username who's avatar to download * @param avatarId The Id of the avatar image (as string) - * @param imgsize The resolution of the avatar image * @return The number of bytes encoded in the buffer */ -int mxit_chunk_create_get_avatar( char* chunkdata, const char* mxitId, const char* avatarId, unsigned int imgsize ) +int mxit_chunk_create_get_avatar( char* chunkdata, const char* mxitId, const char* avatarId ) { int pos = 0; @@ -432,7 +431,7 @@ pos += add_int16( &chunkdata[pos], 1 ); /* image size [4 bytes] */ - pos += add_int32( &chunkdata[pos], imgsize ); + pos += add_int32( &chunkdata[pos], MXIT_AVATAR_SIZE ); return pos; }