Mercurial > pidgin.yaz
diff libpurple/protocols/oscar/bstream.c @ 30827:ed520e6e972b
Renames and cleanups.
author | ivan.komarov@soc.pidgin.im |
---|---|
date | Sat, 31 Jul 2010 20:00:39 +0000 |
parents | bbb27d65681f |
children | 9d028dbd76f4 |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/bstream.c Wed Jul 28 23:53:25 2010 +0000 +++ b/libpurple/protocols/oscar/bstream.c Sat Jul 31 20:00:39 2010 +0000 @@ -78,7 +78,8 @@ */ int byte_stream_advance(ByteStream *bs, int n) { - g_return_val_if_fail((byte_stream_curpos(bs) + n >= 0) && (n <= byte_stream_bytes_left(bs)), 0); + g_return_val_if_fail(byte_stream_curpos(bs) + n >= 0, 0); + g_return_val_if_fail(n <= byte_stream_bytes_left(bs), 0); bs->offset += n; return n;