summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2014-10-09 11:03:29 -0300
committerLucas De Marchi <lucas.demarchi@intel.com>2014-10-09 11:03:29 -0300
commit9a437531af61a59f5f0a96545288735f45ce6469 (patch)
tree8d35202723d83206c32e12673b75a3487fbb56fe /shared
parent52c9c9905683c781e611a5bf3c61fcdc22ab5429 (diff)
downloadkmod-9a437531af61a59f5f0a96545288735f45ce6469.tar.gz
kmod-9a437531af61a59f5f0a96545288735f45ce6469.tar.bz2
kmod-9a437531af61a59f5f0a96545288735f45ce6469.zip
Change parameter from int to char
It's a char not an int.
Diffstat (limited to 'shared')
-rw-r--r--shared/util.c2
-rw-r--r--shared/util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/shared/util.c b/shared/util.c
index dac70ed..855d4e4 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 e013d08..4c59705 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 */