diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-13 16:12:54 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-13 16:12:54 +0200 |
commit | e8ae539c37584f54ba77c8135ddefcb4f01affdd (patch) | |
tree | 05ba741d0e1eb642a367c598338b65be55556887 | |
parent | c0a3f4fdd298441a8527c4f727a5f279b89ef710 (diff) | |
download | xine-lib-e8ae539c37584f54ba77c8135ddefcb4f01affdd.tar.gz xine-lib-e8ae539c37584f54ba77c8135ddefcb4f01affdd.tar.bz2 |
Make xine_hexdump take a void * parameter, so that there are no problems of signedness.
-rw-r--r-- | src/xine-utils/utils.c | 3 | ||||
-rw-r--r-- | src/xine-utils/xineutils.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/xine-utils/utils.c b/src/xine-utils/utils.c index 63c2e2f09..858a754ae 100644 --- a/src/xine-utils/utils.c +++ b/src/xine-utils/utils.c @@ -474,9 +474,10 @@ void xine_usec_sleep(unsigned usec) { /* print a hexdump of length bytes from the data given in buf */ -void xine_hexdump (const char *buf, int length) { +void xine_hexdump (const void *buf_gen, int length) { int i,j; unsigned char c; + const uint8_t *const buf = (const uint8_t*)buf; /* printf ("Hexdump: %i Bytes\n", length);*/ for(j=0; j<69; j++) diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h index 0be29ff63..980586b7d 100644 --- a/src/xine-utils/xineutils.h +++ b/src/xine-utils/xineutils.h @@ -784,7 +784,7 @@ extern void yuy2_to_yuy2 int width, int height) XINE_PROTECTED; /* print a hexdump of the given data */ -void xine_hexdump (const char *buf, int length) XINE_PROTECTED; +void xine_hexdump (const void *buf, int length) XINE_PROTECTED; /* * Optimization macros for conditions |