Mercurial > pidgin
comparison libpurple/protocols/mxit/protocol.c @ 29960:815bd8b41638
I before E, except after C
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Mon, 17 May 2010 01:01:13 +0000 |
parents | 4232e6b27bea |
children | cbae3d450db8 |
comparison
equal
deleted
inserted
replaced
29959:3057fd96be81 | 29960:815bd8b41638 |
---|---|
1181 if ( size < 0 ) { | 1181 if ( size < 0 ) { |
1182 purple_debug_error( MXIT_PLUGIN_ID, "Error creating received chunk (%i)\n", size ); | 1182 purple_debug_error( MXIT_PLUGIN_ID, "Error creating received chunk (%i)\n", size ); |
1183 return; | 1183 return; |
1184 } | 1184 } |
1185 | 1185 |
1186 set_chunk_type( chunk, CP_CHUNK_RECIEVED ); | 1186 set_chunk_type( chunk, CP_CHUNK_RECEIVED ); |
1187 set_chunk_length( chunk, size ); | 1187 set_chunk_length( chunk, size ); |
1188 datalen += MXIT_CHUNK_HEADER_SIZE + size; | 1188 datalen += MXIT_CHUNK_HEADER_SIZE + size; |
1189 | 1189 |
1190 /* send the byte stream to the mxit server */ | 1190 /* send the byte stream to the mxit server */ |
1191 mxit_queue_packet( session, data, datalen, CP_CMD_MEDIA ); | 1191 mxit_queue_packet( session, data, datalen, CP_CMD_MEDIA ); |
1781 | 1781 |
1782 case CP_CHUNK_DIRECT_SND : | 1782 case CP_CHUNK_DIRECT_SND : |
1783 /* this is a ack for a file send. no action is required */ | 1783 /* this is a ack for a file send. no action is required */ |
1784 break; | 1784 break; |
1785 | 1785 |
1786 case CP_CHUNK_RECIEVED : | 1786 case CP_CHUNK_RECEIVED : |
1787 /* this is a ack for a file received. no action is required */ | 1787 /* this is a ack for a file received. no action is required */ |
1788 break; | 1788 break; |
1789 | 1789 |
1790 default : | 1790 default : |
1791 purple_debug_error( MXIT_PLUGIN_ID, "Unsupported chunked data packet type received (%i)\n", type ); | 1791 purple_debug_error( MXIT_PLUGIN_ID, "Unsupported chunked data packet type received (%i)\n", type ); |