]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/tmpfiles/tmpfiles.c
tree-wide: use SET_FLAG() macro to make code more clear
[thirdparty/systemd.git] / src / tmpfiles / tmpfiles.c
index 946808fbecd5b7ff7b7d38c25909c6061a56d224..efd264b34dbc26307f0cbed95bf7edeb4a5e9ce2 100644 (file)
@@ -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;
         }