diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-20 06:34:05 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-20 06:34:05 +0900 |
commit | fe2e4b6961259012908df919b285c371bc0c557f (patch) | |
tree | b55242b09c149949612935a938794a6ff994cc70 /src/network/networkd-address.c | |
parent | 6d946490ba835807327b36263c7a3b53653ca762 (diff) | |
download | systemd-fe2e4b6961259012908df919b285c371bc0c557f.tar.gz |
tree-wide: use htobe{32,16}() instead of hton{l,s}()
Diffstat (limited to 'src/network/networkd-address.c')
-rw-r--r-- | src/network/networkd-address.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index e75a49f614..a207bb0790 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -793,7 +793,7 @@ int config_parse_address(const char *unit, n->in_addr_peer = buffer; if (n->family == AF_INET && n->broadcast.s_addr == 0 && n->prefixlen <= 30) - n->broadcast.s_addr = n->in_addr.in.s_addr | htonl(0xfffffffflu >> n->prefixlen); + n->broadcast.s_addr = n->in_addr.in.s_addr | htobe32(0xfffffffflu >> n->prefixlen); n = NULL; |