From: Vincent Bernat Date: Sun, 21 Jul 2024 15:13:22 +0000 (+0200) Subject: build: run clang-format X-Git-Tag: 1.0.19~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6431b9a39c7e539603e543d7297e6c9050c3ba17;p=thirdparty%2Flldpd.git build: run clang-format --- diff --git a/src/daemon/client.c b/src/daemon/client.c index c4894ac1..2112bdea 100644 --- a/src/daemon/client.c +++ b/src/daemon/client.c @@ -81,7 +81,8 @@ client_handle_set_configuration(struct lldpd *cfg, enum hmsg_type *type, void *i cfg->g_config.c_tx_interval = config->c_tx_interval; cfg->g_config.c_ttl = cfg->g_config.c_tx_interval * cfg->g_config.c_tx_hold; - cfg->g_config.c_ttl = MIN((cfg->g_config.c_ttl + 999) / 1000, 65535); + cfg->g_config.c_ttl = + MIN((cfg->g_config.c_ttl + 999) / 1000, 65535); } levent_send_now(cfg); } diff --git a/src/lib/atoms/config.c b/src/lib/atoms/config.c index 305b5861..835d3db6 100644 --- a/src/lib/atoms/config.c +++ b/src/lib/atoms/config.c @@ -267,8 +267,7 @@ _lldpctl_atom_set_int_config(lldpctl_atom_t *atom, lldpctl_key_t key, long int v break; case lldpctl_k_config_tx_interval_ms: config.c_tx_interval = value; - if (value > 0 && value <= 3600 * 1000) - c->config->c_tx_interval = value; + if (value > 0 && value <= 3600 * 1000) c->config->c_tx_interval = value; break; case lldpctl_k_config_ifdescr_update: config.c_set_ifdescr = c->config->c_set_ifdescr = value; @@ -291,14 +290,12 @@ _lldpctl_atom_set_int_config(lldpctl_atom_t *atom, lldpctl_key_t key, long int v break; case lldpctl_k_config_fast_start_interval: config.c_tx_fast_interval = value; - if (value > 0 && value <= 3600) - c->config->c_tx_fast_interval = value; + if (value > 0 && value <= 3600) c->config->c_tx_fast_interval = value; break; #endif case lldpctl_k_config_tx_hold: config.c_tx_hold = value; - if (value > 0 && value <= 100) - c->config->c_tx_hold = value; + if (value > 0 && value <= 100) c->config->c_tx_hold = value; break; case lldpctl_k_config_max_neighbors: config.c_max_neighbors = value;