Merge pull request #12837 from yuwata/tree-wide-lgtm-fixes

tree-wide: fix issues found by lgtm
This commit is contained in:
Lennart Poettering
2019-06-20 12:35:34 +02:00
committed by GitHub
10 changed files with 67 additions and 38 deletions
+1 -1
View File
@@ -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;