From 43bf28741f0273f9722c52e2fd37049355e04186 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 15 Jul 2020 03:40:26 +0900 Subject: network: drop doubled white space --- src/network/netdev/bond.c | 2 +- src/network/netdev/bridge.c | 2 +- src/network/networkctl.c | 2 +- src/network/networkd-network.c | 2 +- src/network/tc/tc-util.c | 4 ++-- src/network/wait-online/manager.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/network/netdev/bond.c b/src/network/netdev/bond.c index 8c1ba11e5f..4d61c217b1 100644 --- a/src/network/netdev/bond.c +++ b/src/network/netdev/bond.c @@ -288,7 +288,7 @@ int link_set_bond(Link *link) { r = netlink_call_async(link->manager->rtnl, NULL, req, link_set_bond_handler, link_netlink_destroy_callback, link); if (r < 0) - return log_link_error_errno(link, r, "Could not send rtnetlink message: %m"); + return log_link_error_errno(link, r, "Could not send rtnetlink message: %m"); link_ref(link); diff --git a/src/network/netdev/bridge.c b/src/network/netdev/bridge.c index de492c5eeb..ef5a9bb694 100644 --- a/src/network/netdev/bridge.c +++ b/src/network/netdev/bridge.c @@ -218,7 +218,7 @@ int link_set_bridge(Link *link) { return log_link_error_errno(link, r, "Could not append IFLA_BRPORT_FAST_LEAVE attribute: %m"); } - if (link->network->allow_port_to_be_root >= 0) { + if (link->network->allow_port_to_be_root >= 0) { r = sd_netlink_message_append_u8(req, IFLA_BRPORT_PROTECT, link->network->allow_port_to_be_root); if (r < 0) return log_link_error_errno(link, r, "Could not append IFLA_BRPORT_PROTECT attribute: %m"); diff --git a/src/network/networkctl.c b/src/network/networkctl.c index cc4639aeaf..a80a6185da 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -1662,7 +1662,7 @@ static int link_status_one( r = table_add_many(table, TABLE_EMPTY, TABLE_STRING, "Mode:", - TABLE_STRING, bond_mode_to_string(info->mode), + TABLE_STRING, bond_mode_to_string(info->mode), TABLE_EMPTY, TABLE_STRING, "Miimon:", TABLE_TIMESPAN_MSEC, jiffies_to_usec(info->miimon), diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index 22bd06a891..f7021f3edb 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -52,7 +52,7 @@ void network_apply_anonymize_if_set(Network *network) { /* RFC7844 section 3.6.: The client intending to protect its privacy SHOULD only request a minimal number of options in the PRL and SHOULD also randomly shuffle - the ordering of option codes in the PRL. If this random ordering + the ordering of option codes in the PRL. If this random ordering cannot be implemented, the client MAY order the option codes in the PRL by option code number (lowest to highest). */ diff --git a/src/network/tc/tc-util.c b/src/network/tc/tc-util.c index 5f25acbdd6..8a5afeab2d 100644 --- a/src/network/tc/tc-util.c +++ b/src/network/tc/tc-util.c @@ -26,7 +26,7 @@ int tc_init(double *ret_ticks_in_usec, uint32_t *ret_hz) { if (r < 4) return -EIO; - clock_factor = (double) clock_resolution / USEC_PER_SEC; + clock_factor = (double) clock_resolution / USEC_PER_SEC; ticks_in_usec = (double) ticks_to_usec / usec_to_ticks * clock_factor; } @@ -57,7 +57,7 @@ int tc_time_to_tick(usec_t t, uint32_t *ret) { return 0; } -int parse_tc_percent(const char *s, uint32_t *percent) { +int parse_tc_percent(const char *s, uint32_t *percent) { int r; assert(s); diff --git a/src/network/wait-online/manager.c b/src/network/wait-online/manager.c index 40a29f19aa..6ab26d3ca9 100644 --- a/src/network/wait-online/manager.c +++ b/src/network/wait-online/manager.c @@ -323,7 +323,7 @@ int manager_new(Manager **ret, Hashmap *interfaces, char **ignore, if (r < 0) return r; - (void) sd_event_add_signal(m->event, NULL, SIGTERM, NULL, NULL); + (void) sd_event_add_signal(m->event, NULL, SIGTERM, NULL, NULL); (void) sd_event_add_signal(m->event, NULL, SIGINT, NULL, NULL); if (timeout > 0) { -- cgit v1.2.1