diff options
author | Karel Zak | 2018-07-20 12:52:09 +0200 |
---|---|---|
committer | Karel Zak | 2018-07-20 12:52:09 +0200 |
commit | 8a7aeeda6777e3547ec060ac486a276152f069ee (patch) | |
tree | 9b4cdd1315c2538c6780ad026b27bdeb3eebd1f2 | |
parent | hwclock: fix warning (diff) | |
download | kernel-qcow2-util-linux-8a7aeeda6777e3547ec060ac486a276152f069ee.tar.gz kernel-qcow2-util-linux-8a7aeeda6777e3547ec060ac486a276152f069ee.tar.xz kernel-qcow2-util-linux-8a7aeeda6777e3547ec060ac486a276152f069ee.zip |
include/strutils: remove unnecessary cast
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | include/strutils.h | 4 |
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; } /* |