diff options
author | Alexander Kuleshov <kuleshovmail@gmail.com> | 2016-03-03 23:30:37 +0600 |
---|---|---|
committer | Alexander Kuleshov <kuleshovmail@gmail.com> | 2016-03-05 18:26:01 +0600 |
commit | 5883ff60179d01b55af8df27027be6a411881745 (patch) | |
tree | 38f6d3aea4a099c3f53138d9e71bb7ec0cf2d19e /src/network | |
parent | 9f0cd100d0dbc7c9b55e99bacb4034402a60b389 (diff) |
tree-wide: use SET_FLAG() macro to make code more clear
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/networkd-network.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index f175788977..491b9a3efa 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -629,10 +629,7 @@ int config_parse_ipv4ll( * config_parse_address_family_boolean(), except that it * applies only to IPv4 */ - if (parse_boolean(rvalue)) - *link_local |= ADDRESS_FAMILY_IPV4; - else - *link_local &= ~ADDRESS_FAMILY_IPV4; + SET_FLAG(*link_local, ADDRESS_FAMILY_IPV4, parse_boolean(rvalue)); return 0; } |