diff options
author | Josh Triplett <josh@joshtriplett.org> | 2014-03-11 18:51:17 -0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-12 17:02:09 +0100 |
commit | 01f83c1c765db13e20a241a48733333360457718 (patch) | |
tree | 7ec630d19fd86e55290cd0e0ba79e08fe0eab1fa /src/shared/util.c | |
parent | e0333c7314e89c0bc268bd20c5e247a7c907ab34 (diff) |
util: Make in_charset a static inline in util.h
With in_charset now reduced to a one-liner (plus asserts), make it a
static inline.
Diffstat (limited to 'src/shared/util.c')
-rw-r--r-- | src/shared/util.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index e1a1168456..9e8cd54d04 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -920,12 +920,6 @@ char *delete_chars(char *s, const char *bad) { return s; } -bool in_charset(const char *s, const char* charset) { - assert(s); - assert(charset); - return s[strspn(s, charset)] == '\0'; -} - char *file_in_same_dir(const char *path, const char *filename) { char *e, *r; size_t k; |