comparison 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
comparison
equal deleted inserted replaced
30826:bbb27d65681f 30827:ed520e6e972b
76 * N can be negative, which can be used for going backwards 76 * N can be negative, which can be used for going backwards
77 * in a bstream. 77 * in a bstream.
78 */ 78 */
79 int byte_stream_advance(ByteStream *bs, int n) 79 int byte_stream_advance(ByteStream *bs, int n)
80 { 80 {
81 g_return_val_if_fail((byte_stream_curpos(bs) + n >= 0) && (n <= byte_stream_bytes_left(bs)), 0); 81 g_return_val_if_fail(byte_stream_curpos(bs) + n >= 0, 0);
82 g_return_val_if_fail(n <= byte_stream_bytes_left(bs), 0);
82 83
83 bs->offset += n; 84 bs->offset += n;
84 return n; 85 return n;
85 } 86 }
86 87