Change parameter from int to char
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 9 Oct 2014 14:03:29 +0000 (11:03 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 9 Oct 2014 14:03:29 +0000 (11:03 -0300)
It's a char not an int.

shared/util.c
shared/util.h

index dac70ed..855d4e4 100644 (file)
@@ -62,7 +62,7 @@ void *memdup(const void *p, size_t n)
        return memcpy(r, p, n);
 }
 
-char *strchr_replace(char *s, int c, char r)
+char *strchr_replace(char *s, char c, char r)
 {
        char *p;
 
index e013d08..4c59705 100644 (file)
@@ -13,7 +13,7 @@
 /* ************************************************************************ */
 #define streq(a, b) (strcmp((a), (b)) == 0)
 #define strstartswith(a, b) (strncmp(a, b, strlen(b)) == 0)
-char *strchr_replace(char *s, int c, char r);
+char *strchr_replace(char *s, char c, char r);
 void *memdup(const void *p, size_t n) __attribute__((nonnull(1)));
 
 /* module-related functions                                                 */