aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/stringop.c2
-rw-r--r--include/stringop.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/stringop.c b/common/stringop.c
index 8c8e9aa2..7fb3fe12 100644
--- a/common/stringop.c
+++ b/common/stringop.c
@@ -64,7 +64,7 @@ char *lenient_strncat(char *dest, const char *src, size_t len) {
64} 64}
65 65
66// strcmp that also handles null pointers. 66// strcmp that also handles null pointers.
67int lenient_strcmp(char *a, char *b) { 67int lenient_strcmp(const char *a, const char *b) {
68 if (a == b) { 68 if (a == b) {
69 return 0; 69 return 0;
70 } else if (!a) { 70 } else if (!a) {
diff --git a/include/stringop.h b/include/stringop.h
index e3f4f0f7..8d7089e9 100644
--- a/include/stringop.h
+++ b/include/stringop.h
@@ -12,7 +12,7 @@ char *lenient_strcat(char *dest, const char *src);
12char *lenient_strncat(char *dest, const char *src, size_t len); 12char *lenient_strncat(char *dest, const char *src, size_t len);
13 13
14// strcmp that also handles null pointers. 14// strcmp that also handles null pointers.
15int lenient_strcmp(char *a, char *b); 15int lenient_strcmp(const char *a, const char *b);
16 16
17// Simply split a string with delims, free with `list_free_items_and_destroy` 17// Simply split a string with delims, free with `list_free_items_and_destroy`
18list_t *split_string(const char *str, const char *delims); 18list_t *split_string(const char *str, const char *delims);