changeset 33711:bdddbf265c6e

Use "const char *" type for paths. Fixes a clang warning due to sign mismatch when calling open().
author reimar
date Sat, 02 Jul 2011 23:22:49 +0000
parents fd498969e72d
children 2d193c9affc7
files libvo/vo_jpeg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;