comparison src/protocols/oscar/rxqueue.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 7d31d61e6438
children af3d6c6aee6b
comparison
equal deleted inserted replaced
12426:98be11e744a8 12427:c5c0f714d8bc
40 */ 40 */
41 faim_internal int aim_bstream_recv(aim_bstream_t *bs, int fd, size_t count) 41 faim_internal int aim_bstream_recv(aim_bstream_t *bs, int fd, size_t count)
42 { 42 {
43 int red = 0; 43 int red = 0;
44 44
45 if (!bs || (fd < 0) || (count < 0)) 45 if (!bs || (fd < 0))
46 return -1; 46 return -1;
47 47
48 if (count > (bs->len - bs->offset)) 48 if (count > (bs->len - bs->offset))
49 count = bs->len - bs->offset; /* truncate to remaining space */ 49 count = bs->len - bs->offset; /* truncate to remaining space */
50 50