OSDN Git Service

Fix type incompatibility
authorStarg <starg@users.osdn.me>
Sat, 8 Dec 2018 04:03:14 +0000 (13:03 +0900)
committerStarg <starg@users.osdn.me>
Sat, 8 Dec 2018 04:03:14 +0000 (13:03 +0900)
timidity/common.c

index d8d1457..857eba0 100644 (file)
@@ -381,7 +381,7 @@ static int is_abs_path(const char *name)
        return 0;
 }
 
-struct timidity_file *open_with_mem(char *mem, int32 memlen, int noise_mode)
+struct timidity_file *open_with_mem(char *mem, ptr_size_t memlen, int noise_mode)
 {
     URL url;
     struct timidity_file *tf;
@@ -421,7 +421,7 @@ struct timidity_file *open_with_constmem(const char *mem, ptr_size_t memlen, int
  * This is meant to find and open files for reading, possibly piping
  * them through a decompressor.
  */
-struct timidity_file *open_file(char *name, int decompress, int noise_mode)
+struct timidity_file *open_file(const char *name, int decompress, int noise_mode)
 {
        struct timidity_file *tf;
        PathList *plp = pathlist;
@@ -496,7 +496,7 @@ struct timidity_file *open_file(char *name, int decompress, int noise_mode)
  * This is meant to find and open regular files for reading, possibly
  * piping them through a decompressor.
  */
-struct timidity_file *open_file_r(char *name, int decompress, int noise_mode)
+struct timidity_file *open_file_r(const char *name, int decompress, int noise_mode)
 {
        struct stat st;
        struct timidity_file *tf;