src/common.[ch] : Constify psf_hexdump.

This commit is contained in:
Erik de Castro Lopo 2007-05-02 22:09:25 +10:00
parent e93639c398
commit 8aefc9b4e3
4 changed files with 16 additions and 3 deletions

View File

@ -82,3 +82,4 @@ tests/sfversion
tests/utils.c
tests/utils.h
tests/write_read_test.c
src/FLAC/src/test_libFLAC/matrix

View File

@ -1,3 +1,14 @@
2007-05-02 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/wve.c
Fix a couple bad parameters with psf_log_printf.
* src/pcm.c
Improve error reporting.
* src/common.h src/common.c
Constify psf_hexdump.
2007-04-30 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/FLAC

View File

@ -1112,8 +1112,9 @@ psf_default_seek (SF_PRIVATE *psf, int UNUSED (mode), sf_count_t samples_from_st
*/
void
psf_hexdump (void *ptr, int len)
{ char ascii [17], *data ;
psf_hexdump (const void *ptr, int len)
{ const char *data ;
char ascii [17] ;
int k, m ;
if ((data = ptr) == NULL)

View File

@ -587,7 +587,7 @@ void double64_le_write (double in, unsigned char *out) ;
void psf_log_printf (SF_PRIVATE *psf, const char *format, ...) ;
void psf_log_SF_INFO (SF_PRIVATE *psf) ;
void psf_hexdump (void *ptr, int len) ;
void psf_hexdump (const void *ptr, int len) ;
/* Functions used when writing file headers. */