# HG changeset patch # User reimar # Date 1309648969 0 # Node ID bdddbf265c6e0e5dc4236c7b826917c06f8a1dcb # Parent fd498969e72d235c79fece4795c76b6ac2c70c69 Use "const char *" type for paths. Fixes a clang warning due to sign mismatch when calling open(). diff -r fd498969e72d -r bdddbf265c6e libvo/vo_jpeg.c --- a/libvo/vo_jpeg.c Sat Jul 02 23:12:45 2011 +0000 +++ b/libvo/vo_jpeg.c Sat Jul 02 23:22:49 2011 +0000 @@ -105,7 +105,7 @@ * returns, everything went well. */ -static void jpeg_mkdir(char *buf, int verbose) { +static void jpeg_mkdir(const char *buf, int verbose) { struct stat stat_p; #ifndef __MINGW32__ @@ -177,7 +177,7 @@ /* ------------------------------------------------------------------------- */ -static uint32_t jpeg_write(uint8_t * name, uint8_t * buffer) +static uint32_t jpeg_write(const char * name, uint8_t * buffer) { FILE *outfile; struct jpeg_compress_struct cinfo;