summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2018-08-20 09:18:16 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit92848a096ef6688d8883e34cc54fcfa02b8b4a13 (patch)
tree5e244d66ada5a86571bd57b0fb5ba740f07cd161
parent7d30ad49d869df6662ac4ce0023f91d2bb364c87 (diff)
Prep v239: string-util.[hc] - Unmasked skip_leading_chars() - Newly utilized by strstrip()
-rw-r--r--src/basic/string-util.c4
-rw-r--r--src/basic/string-util.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/string-util.c b/src/basic/string-util.c
index 0f43b3744..4f616db53 100644
--- a/src/basic/string-util.c
+++ b/src/basic/string-util.c
@@ -9,9 +9,9 @@
#include <string.h>
#include "alloc-util.h"
-//#include "escape.h"
+#include "escape.h"
#include "gunicode.h"
-//#include "locale-util.h"
+#include "locale-util.h"
#include "macro.h"
#include "string-util.h"
//#include "terminal-util.h"
diff --git a/src/basic/string-util.h b/src/basic/string-util.h
index 2dcf6b93e..89309c298 100644
--- a/src/basic/string-util.h
+++ b/src/basic/string-util.h
@@ -124,7 +124,6 @@ char *delete_chars(char *s, const char *bad);
char *delete_trailing_chars(char *s, const char *bad);
char *truncate_nl(char *s);
-#if 0 /// UNNEEDED by elogind
static inline char *skip_leading_chars(const char *s, const char *bad) {
if (!s)
@@ -136,6 +135,7 @@ static inline char *skip_leading_chars(const char *s, const char *bad) {
return (char*) s + strspn(s, bad);
}
+#if 0 /// UNNEEDED by elogind
char ascii_tolower(char x);
char *ascii_strlower(char *s);
char *ascii_strlower_n(char *s, size_t n);