From: Karel Zak Date: Fri, 20 Jul 2018 10:52:09 +0000 (+0200) Subject: include/strutils: remove unnecessary cast X-Git-Tag: v2.33-rc1~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a7aeeda6777e3547ec060ac486a276152f069ee;p=thirdparty%2Futil-linux.git include/strutils: remove unnecessary cast Signed-off-by: Karel Zak --- diff --git a/include/strutils.h b/include/strutils.h index 5d07fcc7c0..2e35be3c5e 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; } /*