summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKarel Zak2018-07-20 12:52:09 +0200
committerKarel Zak2018-07-20 12:52:09 +0200
commit8a7aeeda6777e3547ec060ac486a276152f069ee (patch)
tree9b4cdd1315c2538c6780ad026b27bdeb3eebd1f2 /include
parenthwclock: fix warning (diff)
downloadkernel-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>
Diffstat (limited to 'include')
-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;
}
/*