summaryrefslogtreecommitdiff
path: root/src/tmpfiles
diff options
context:
space:
mode:
authorAlexander Kuleshov <kuleshovmail@gmail.com>2016-03-03 23:30:37 +0600
committerAlexander Kuleshov <kuleshovmail@gmail.com>2016-03-05 18:26:01 +0600
commit5883ff60179d01b55af8df27027be6a411881745 (patch)
tree38f6d3aea4a099c3f53138d9e71bb7ec0cf2d19e /src/tmpfiles
parent9f0cd100d0dbc7c9b55e99bacb4034402a60b389 (diff)
tree-wide: use SET_FLAG() macro to make code more clear
Diffstat (limited to 'src/tmpfiles')
-rw-r--r--src/tmpfiles/tmpfiles.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index 946808fbec..efd264b34d 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -917,10 +917,7 @@ static int parse_attribute_from_arg(Item *item) {
v = attributes[i].value;
- if (mode == MODE_ADD || mode == MODE_SET)
- value |= v;
- else
- value &= ~v;
+ SET_FLAG(value, v, (mode == MODE_ADD || mode == MODE_SET));
mask |= v;
}