From: Lucas De Marchi Date: Thu, 9 Oct 2014 14:03:29 +0000 (-0300) Subject: Change parameter from int to char X-Git-Tag: v19~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a437531af61a59f5f0a96545288735f45ce6469;p=thirdparty%2Fkmod.git Change parameter from int to char It's a char not an int. --- diff --git a/shared/util.c b/shared/util.c index dac70edc..855d4e42 100644 --- a/shared/util.c +++ b/shared/util.c @@ -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; diff --git a/shared/util.h b/shared/util.h index e013d089..4c59705a 100644 --- a/shared/util.h +++ b/shared/util.h @@ -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 */