diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-07-24 14:12:58 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-07-31 22:48:22 -0400 |
commit | 2d37cd5356f666b399c5ae93ce77053f501d0e33 (patch) | |
tree | 56eb723c03cec414f8d415336ab014e4196d684d /src/basic/util.h | |
parent | 0fbd465f4138dd2c3c7428c23cae117a7b56568d (diff) |
Add enable_disable() helper
In this patch "enabled" and "disabled" is used exclusively, but "enable" and
"disable" forms are need for the following patch.
Diffstat (limited to 'src/basic/util.h')
-rw-r--r-- | src/basic/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/util.h b/src/basic/util.h index 44497dcd78..bb2fc318ef 100644 --- a/src/basic/util.h +++ b/src/basic/util.h @@ -61,6 +61,10 @@ static inline const char* one_zero(bool b) { return b ? "1" : "0"; } +static inline const char* enable_disable(bool b) { + return b ? "enable" : "disable"; +} + void execute_directories(const char* const* directories, usec_t timeout, char *argv[]); bool plymouth_running(void); |