From 905c67eebb46e83135a515b615549b55bdbc166a Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sat, 8 Nov 2008 09:49:11 +1100 Subject: Patch : Make speex_bits_read_from and speex_bits_read_whole_bytes const correct Jean-Marc, The following patch makes the above two read functions const correct. Cheers, Erik --- libspeex/bits.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libspeex') diff --git a/libspeex/bits.c b/libspeex/bits.c index 8e5e6b6..95adbfd 100644 --- a/libspeex/bits.c +++ b/libspeex/bits.c @@ -106,7 +106,7 @@ EXPORT void speex_bits_rewind(SpeexBits *bits) bits->overflow=0; } -EXPORT void speex_bits_read_from(SpeexBits *bits, char *chars, int len) +EXPORT void speex_bits_read_from(SpeexBits *bits, const char *chars, int len) { int i; int nchars = len / BYTES_PER_CHAR; @@ -153,7 +153,7 @@ static void speex_bits_flush(SpeexBits *bits) bits->charPtr=0; } -EXPORT void speex_bits_read_whole_bytes(SpeexBits *bits, char *chars, int nbytes) +EXPORT void speex_bits_read_whole_bytes(SpeexBits *bits, const char *chars, int nbytes) { int i,pos; int nchars = nbytes/BYTES_PER_CHAR; -- cgit v1.2.3