From 8c7c140fcab0592735d22168657a143969a4c2bf Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 19 Oct 2012 04:52:51 +0200 Subject: util: change endswith() to return a pointer to the suffix --- src/shared/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/util.h') diff --git a/src/shared/util.h b/src/shared/util.h index affb66998c..77d28751f0 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -141,7 +141,7 @@ static inline bool isempty(const char *p) { return !p || !p[0]; } -bool endswith(const char *s, const char *postfix); +char *endswith(const char *s, const char *postfix); bool startswith(const char *s, const char *prefix); bool startswith_no_case(const char *s, const char *prefix); -- cgit v1.2.3-54-g00ecf