diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-02-28 10:57:20 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-02-28 10:57:20 +0900 |
commit | 2850cd40eef12dca993825e303c178bc74ea0cdf (patch) | |
tree | d32dcb88c881a60c16c32cd8ecc1bb6c179339b1 /src/network/networkd-address.c | |
parent | 33680b0a262ef75a1f5cce1e8e24c5b44752c456 (diff) | |
download | systemd-2850cd40eef12dca993825e303c178bc74ea0cdf.tar.gz |
network: wrap long lines
Diffstat (limited to 'src/network/networkd-address.c')
-rw-r--r-- | src/network/networkd-address.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index d538ee7fde..7c1ee75405 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -690,13 +690,15 @@ int config_parse_broadcast( return r; if (n->family == AF_INET6) { - log_syntax(unit, LOG_ERR, filename, line, 0, "Broadcast is not valid for IPv6 addresses, ignoring assignment: %s", rvalue); + log_syntax(unit, LOG_ERR, filename, line, 0, + "Broadcast is not valid for IPv6 addresses, ignoring assignment: %s", rvalue); return 0; } r = in_addr_from_string(AF_INET, rvalue, (union in_addr_union*) &n->broadcast); if (r < 0) { - log_syntax(unit, LOG_ERR, filename, line, r, "Broadcast is invalid, ignoring assignment: %s", rvalue); + log_syntax(unit, LOG_ERR, filename, line, r, + "Broadcast is invalid, ignoring assignment: %s", rvalue); return 0; } @@ -802,7 +804,8 @@ int config_parse_label( return r; if (!address_label_valid(rvalue)) { - log_syntax(unit, LOG_ERR, filename, line, 0, "Interface label is too long or invalid, ignoring assignment: %s", rvalue); + log_syntax(unit, LOG_ERR, filename, line, 0, + "Interface label is too long or invalid, ignoring assignment: %s", rvalue); return 0; } @@ -811,7 +814,6 @@ int config_parse_label( return log_oom(); n = NULL; - return 0; } @@ -883,7 +885,8 @@ int config_parse_address_flags(const char *unit, r = parse_boolean(rvalue); if (r < 0) { - log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse address flag, ignoring: %s", rvalue); + log_syntax(unit, LOG_ERR, filename, line, r, + "Failed to parse address flag, ignoring: %s", rvalue); return 0; } @@ -897,6 +900,8 @@ int config_parse_address_flags(const char *unit, n->prefix_route = r; else if (streq(lvalue, "AutoJoin")) n->autojoin = r; + else + assert_not_reached("Invalid address flag type."); n = NULL; return 0; @@ -935,13 +940,13 @@ int config_parse_address_scope(const char *unit, else { r = safe_atou8(rvalue , &n->scope); if (r < 0) { - log_syntax(unit, LOG_ERR, filename, line, r, "Could not parse address scope \"%s\", ignoring assignment: %m", rvalue); + log_syntax(unit, LOG_ERR, filename, line, r, + "Could not parse address scope \"%s\", ignoring assignment: %m", rvalue); return 0; } } n = NULL; - return 0; } |