summaryrefslogtreecommitdiffstats
path: root/include/strutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/strutils.h')
-rw-r--r--include/strutils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/strutils.h b/include/strutils.h
index 5d07fcc7c..2e35be3c5 100644
--- a/include/strutils.h
+++ b/include/strutils.h
@@ -149,12 +149,12 @@ static inline const char *endswith(const char *s, const char *postfix)
size_t pl = postfix ? strlen(postfix) : 0;
if (pl == 0)
- return (char *)s + sl;
+ return s + sl;
if (sl < pl)
return NULL;
if (memcmp(s + sl - pl, postfix, pl) != 0)
return NULL;
- return (char *)s + sl - pl;
+ return s + sl - pl;
}
/*