Change parameter from int to char

It's a char not an int.
This commit is contained in:
Lucas De Marchi 2014-10-09 11:03:29 -03:00
parent 52c9c99056
commit 9a437531af
2 changed files with 2 additions and 2 deletions

View 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;

View 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 */