From 8a7aeeda6777e3547ec060ac486a276152f069ee Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 20 Jul 2018 12:52:09 +0200 Subject: include/strutils: remove unnecessary cast Signed-off-by: Karel Zak --- include/strutils.h | 4 ++-- 1 file 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; } /* -- cgit v1.2.3-55-g7522