summaryrefslogtreecommitdiffstats
path: root/sysusers.d
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-28 03:13:08 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-05-02 22:29:11 +0200
commit2c201c2140f9a75f3698e988880f00f8d0492315 (patch)
tree28f9835b7720692a60dda9b88a598994a03b396c /sysusers.d
parentmeson: add status report (diff)
downloadsystemd-2c201c2140f9a75f3698e988880f00f8d0492315.tar.xz
systemd-2c201c2140f9a75f3698e988880f00f8d0492315.zip
meson: use booleans for conf.set and drop unecessary conditionals
Using conf.set() with a boolean argument does the right thing: either #ifdef or #undef. This means that conf.set can be used unconditionally. Previously I used '1' as the placeholder value, and that needs to be changed to 'true' for consistency (under meson 1 cannot be used in boolean context). All checks need to be adjusted.
Diffstat (limited to 'sysusers.d')
-rw-r--r--sysusers.d/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysusers.d/meson.build b/sysusers.d/meson.build
index 8e126f289a..f4662c0a85 100644
--- a/sysusers.d/meson.build
+++ b/sysusers.d/meson.build
@@ -1,6 +1,6 @@
in_files = ['basic.conf']
-enable_sysusers = conf.get('ENABLE_SYSUSERS', 0) == 1
+enable_sysusers = conf.get('ENABLE_SYSUSERS', false)
foreach file : in_files
gen = configure_file(
@@ -15,7 +15,7 @@ endforeach
m4_files = ['systemd.conf']
-if conf.get('ENABLE_REMOTE', 0) == 1 and conf.get('HAVE_MICROHTTPD', 0) == 1
+if conf.get('ENABLE_REMOTE', false) and conf.get('HAVE_MICROHTTPD', false)
m4_files += ['systemd-remote.conf']
endif