From aea29a300d14d183ef9a2f946a36d0631a6b2d0d Mon Sep 17 00:00:00 2001 From: Li kunyu <105766379+likunyur@users.noreply.github.com> Date: Tue, 5 Jul 2022 07:06:47 +0000 Subject: [PATCH] tree-wide: Remove the repeated ';' from code (#23901) --- src/resolve/resolvectl.c | 2 +- src/resolve/resolved-dnssd.c | 2 +- src/sleep/sleep.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/resolve/resolvectl.c b/src/resolve/resolvectl.c index 245c273fde0..aaa1c497c02 100644 --- a/src/resolve/resolvectl.c +++ b/src/resolve/resolvectl.c @@ -811,7 +811,7 @@ static int resolve_service(sd_bus *bus, const char *name, const char *type, cons while ((r = sd_bus_message_enter_container(reply, 'r', "iiay")) > 0) { _cleanup_free_ char *pretty = NULL; int ifindex, family, k; - union in_addr_union a;; + union in_addr_union a; assert_cc(sizeof(int) == sizeof(int32_t)); diff --git a/src/resolve/resolved-dnssd.c b/src/resolve/resolved-dnssd.c index 9c2594c1ba0..02462599be1 100644 --- a/src/resolve/resolved-dnssd.c +++ b/src/resolve/resolved-dnssd.c @@ -200,7 +200,7 @@ int dnssd_load(Manager *manager) { STRV_FOREACH_BACKWARDS(f, files) { r = dnssd_service_load(manager, *f); if (r < 0) - log_warning_errno(r, "Failed to load '%s': %m", *f);; + log_warning_errno(r, "Failed to load '%s': %m", *f); } return 0; diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c index 65e391d02ad..58003efdfef 100644 --- a/src/sleep/sleep.c +++ b/src/sleep/sleep.c @@ -224,7 +224,7 @@ static int execute( r = write_mode(modes); if (r < 0) - return log_error_errno(r, "Failed to write mode to /sys/power/disk: %m");; + return log_error_errno(r, "Failed to write mode to /sys/power/disk: %m"); } /* Pass an action string to the call-outs. This is mostly our operation string, except if the