diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-04-28 03:13:08 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-05-02 22:29:11 +0200 |
commit | 2c201c2140f9a75f3698e988880f00f8d0492315 (patch) | |
tree | 28f9835b7720692a60dda9b88a598994a03b396c /sysctl.d/meson.build | |
parent | meson: add status report (diff) | |
download | systemd-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 'sysctl.d/meson.build')
-rw-r--r-- | sysctl.d/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysctl.d/meson.build b/sysctl.d/meson.build index 1205c3a122..1b6707df77 100644 --- a/sysctl.d/meson.build +++ b/sysctl.d/meson.build @@ -4,7 +4,7 @@ install_data( in_files = [] -if conf.get('ENABLE_COREDUMP', 0) == 1 +if conf.get('ENABLE_COREDUMP', false) in_files += ['50-coredump.conf'] endif |