diff options
author | Erik de Castro Lopo <mle+la@mega-nerd.com> | 2008-11-08 01:49:11 +0300 |
---|---|---|
committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2008-11-09 18:59:55 +0300 |
commit | 905c67eebb46e83135a515b615549b55bdbc166a (patch) | |
tree | 608447273a9a0539942107e9dc8d89f495a70817 /libspeex | |
parent | 9063dd27f45382ede3bfbdad19e557f57423d2df (diff) |
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
Diffstat (limited to 'libspeex')
-rw-r--r-- | libspeex/bits.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |