summaryrefslogtreecommitdiffstats
path: root/src/basic
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-27 01:23:53 +0100
committerLennart Poettering <lennart@poettering.net>2015-10-27 13:25:57 +0100
commitc7f1808add4d971229ba5311cf66e659122aa338 (patch)
tree2fac1c0f431d8dc91c8ebe4e2d12eef0b06a572c /src/basic
parentmacro: move DECIMAL_STR_WIDTH() into macro.h (diff)
downloadsystemd-c7f1808add4d971229ba5311cf66e659122aa338.tar.xz
systemd-c7f1808add4d971229ba5311cf66e659122aa338.zip
macro.h: move definition of MODE_INVALID to parse-util.h
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/fs-util.c1
-rw-r--r--src/basic/macro.h2
-rw-r--r--src/basic/parse-util.h2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/basic/fs-util.c b/src/basic/fs-util.c
index edb007f98c..6ad381afb4 100644
--- a/src/basic/fs-util.c
+++ b/src/basic/fs-util.c
@@ -24,6 +24,7 @@
#include "fileio.h"
#include "fs-util.h"
#include "mkdir.h"
+#include "parse-util.h"
#include "path-util.h"
#include "string-util.h"
#include "strv.h"
diff --git a/src/basic/macro.h b/src/basic/macro.h
index 01916bd788..156c16b1c3 100644
--- a/src/basic/macro.h
+++ b/src/basic/macro.h
@@ -427,8 +427,6 @@ do { \
#endif
#endif
-#define MODE_INVALID ((mode_t) -1)
-
#define DEFINE_TRIVIAL_CLEANUP_FUNC(type, func) \
static inline void func##p(type *p) { \
if (*p) \
diff --git a/src/basic/parse-util.h b/src/basic/parse-util.h
index 35b4ba030c..72a619c38f 100644
--- a/src/basic/parse-util.h
+++ b/src/basic/parse-util.h
@@ -26,6 +26,8 @@
#include "macro.h"
+#define MODE_INVALID ((mode_t) -1)
+
int parse_boolean(const char *v) _pure_;
int parse_pid(const char *s, pid_t* ret_pid);
int parse_mode(const char *s, mode_t *ret);