Mercurial > pidgin
comparison src/protocols/oscar/txqueue.c @ 12427:c5c0f714d8bc
[gaim-migrate @ 14734]
size_t is unsigned, so I'm removing a check that can't ever matter.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 09 Dec 2005 03:37:24 +0000 |
parents | ab0fa7cd61cc |
children | 9a0a6e74aafd |
comparison
equal
deleted
inserted
replaced
12426:98be11e744a8 | 12427:c5c0f714d8bc |
---|---|
215 | 215 |
216 int aim_bstream_send(aim_bstream_t *bs, aim_conn_t *conn, size_t count) | 216 int aim_bstream_send(aim_bstream_t *bs, aim_conn_t *conn, size_t count) |
217 { | 217 { |
218 int wrote = 0; | 218 int wrote = 0; |
219 | 219 |
220 if (!bs || !conn || (count < 0)) | 220 if (!bs || !conn) |
221 return -EINVAL; | 221 return -EINVAL; |
222 | 222 |
223 /* Make sure we don't send past the end of the bs */ | 223 /* Make sure we don't send past the end of the bs */ |
224 if (count > aim_bstream_empty(bs)) | 224 if (count > aim_bstream_empty(bs)) |
225 count = aim_bstream_empty(bs); /* truncate to remaining space */ | 225 count = aim_bstream_empty(bs); /* truncate to remaining space */ |