Mercurial > pidgin.yaz
comparison libpurple/protocols/mxit/filexfer.c @ 32756:280ef1bd125b
MXit doesn't actually support very large file transfers, but fix the
variable types, at least.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 16 Oct 2011 07:10:29 +0000 |
parents | a7c0e3ebdd84 |
children | 930820b18a8d |
comparison
equal
deleted
inserted
replaced
32755:867104ed576a | 32756:280ef1bd125b |
---|---|
137 else { | 137 else { |
138 /* | 138 /* |
139 * we have just accepted a file transfer request from MXit. send a confirmation | 139 * we have just accepted a file transfer request from MXit. send a confirmation |
140 * to the MXit server so that can send us the file | 140 * to the MXit server so that can send us the file |
141 */ | 141 */ |
142 mxit_send_file_accept( mx->session, mx->fileid, purple_xfer_get_size( xfer ), 0 ); | 142 mxit_send_file_accept( mx->session, mx->fileid, (int) purple_xfer_get_size( xfer ), 0 ); |
143 } | 143 } |
144 } | 144 } |
145 | 145 |
146 | 146 |
147 /*------------------------------------------------------------------------ | 147 /*------------------------------------------------------------------------ |
149 * | 149 * |
150 * @param xfer The file transfer object | 150 * @param xfer The file transfer object |
151 */ | 151 */ |
152 static void mxit_xfer_start( PurpleXfer* xfer ) | 152 static void mxit_xfer_start( PurpleXfer* xfer ) |
153 { | 153 { |
154 size_t filesize; | 154 goffset filesize; |
155 unsigned char* buffer; | 155 unsigned char* buffer; |
156 int size; | 156 int size; |
157 int wrote; | 157 int wrote; |
158 | 158 |
159 purple_debug_info( MXIT_PLUGIN_ID, "mxit_xfer_start\n" ); | 159 purple_debug_info( MXIT_PLUGIN_ID, "mxit_xfer_start\n" ); |