]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
client: fix style
authorVincent Bernat <vincent@bernat.ch>
Sat, 25 Nov 2023 03:33:45 +0000 (04:33 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sat, 25 Nov 2023 03:33:45 +0000 (04:33 +0100)
src/client/conf-system.c

index 57a62f85eba2a7decaa8f1a7fbb0c58e68274bab..44131302ce2b294e68529b5e4d8f2b6d3ae9266a 100644 (file)
@@ -206,8 +206,7 @@ cmd_hostname(struct lldpctl_conn_t *conn, struct writer *w, struct cmd_env *env,
                        return 0;
                }
                char *c = strchr(un.nodename, '.');
-               if (c)
-                       *c = 0;
+               if (c) *c = 0;
                value = un.nodename;
        }
        if (lldpctl_atom_set_str(config, lldpctl_k_config_hostname, value) == NULL) {