diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-04 01:14:27 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-06 19:50:51 +0200 |
commit | f5ee7d74af4ab74aa9b1841af7ae40f356243d2d (patch) | |
tree | 13c26c321bace7de3ac503ae2f220ee2a85e8ac4 | |
parent | network: use sd_event stored in Manager (diff) | |
download | systemd-f5ee7d74af4ab74aa9b1841af7ae40f356243d2d.tar.xz systemd-f5ee7d74af4ab74aa9b1841af7ae40f356243d2d.zip |
network: fix indentation
-rw-r--r-- | src/network/networkd-address.c | 70 |
1 files changed, 39 insertions, 31 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index 2f93a6ea46..cf83da47f4 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -1489,7 +1489,8 @@ int config_parse_broadcast( return 0; } -int config_parse_address(const char *unit, +int config_parse_address( + const char *unit, const char *filename, unsigned line, const char *section, @@ -1619,16 +1620,18 @@ int config_parse_label( return 0; } -int config_parse_lifetime(const char *unit, - const char *filename, - unsigned line, - const char *section, - unsigned section_line, - const char *lvalue, - int ltype, - const char *rvalue, - void *data, - void *userdata) { +int config_parse_lifetime( + const char *unit, + const char *filename, + unsigned line, + const char *section, + unsigned section_line, + const char *lvalue, + int ltype, + const char *rvalue, + void *data, + void *userdata) { + Network *network = userdata; _cleanup_(address_free_or_set_invalidp) Address *n = NULL; uint32_t k; @@ -1666,16 +1669,18 @@ int config_parse_lifetime(const char *unit, return 0; } -int config_parse_address_flags(const char *unit, - const char *filename, - unsigned line, - const char *section, - unsigned section_line, - const char *lvalue, - int ltype, - const char *rvalue, - void *data, - void *userdata) { +int config_parse_address_flags( + const char *unit, + const char *filename, + unsigned line, + const char *section, + unsigned section_line, + const char *lvalue, + int ltype, + const char *rvalue, + void *data, + void *userdata) { + Network *network = userdata; _cleanup_(address_free_or_set_invalidp) Address *n = NULL; int r; @@ -1719,16 +1724,18 @@ int config_parse_address_flags(const char *unit, return 0; } -int config_parse_address_scope(const char *unit, - const char *filename, - unsigned line, - const char *section, - unsigned section_line, - const char *lvalue, - int ltype, - const char *rvalue, - void *data, - void *userdata) { +int config_parse_address_scope( + const char *unit, + const char *filename, + unsigned line, + const char *section, + unsigned section_line, + const char *lvalue, + int ltype, + const char *rvalue, + void *data, + void *userdata) { + Network *network = userdata; _cleanup_(address_free_or_set_invalidp) Address *n = NULL; int r; @@ -1779,6 +1786,7 @@ int config_parse_duplicate_address_detection( const char *rvalue, void *data, void *userdata) { + Network *network = userdata; _cleanup_(address_free_or_set_invalidp) Address *n = NULL; AddressFamily a; |