From c7f1808add4d971229ba5311cf66e659122aa338 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 27 Oct 2015 01:23:53 +0100 Subject: [PATCH] macro.h: move definition of MODE_INVALID to parse-util.h --- src/basic/fs-util.c | 1 + src/basic/macro.h | 2 -- src/basic/parse-util.h | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/basic/fs-util.c b/src/basic/fs-util.c index edb007f..6ad381a 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 01916bd..156c16b 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 35b4ba0..72a619c 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); -- 2.7.4