summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-dnssd.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-05-15 03:26:24 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-05-15 03:26:24 +0200
commit4f6ebd43b2582603035f6631c2aede8693a06847 (patch)
treea2cd001084d58ccf2b511081018ec8a6fd9295e7 /src/resolve/resolved-dnssd.c
parentresolve/dnssd: make dnssd_render_instance_name() take Manager (diff)
downloadsystemd-4f6ebd43b2582603035f6631c2aede8693a06847.tar.xz
systemd-4f6ebd43b2582603035f6631c2aede8693a06847.zip
resolve: merge variable declaration with same type
Diffstat (limited to '')
-rw-r--r--src/resolve/resolved-dnssd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/resolve/resolved-dnssd.c b/src/resolve/resolved-dnssd.c
index 6ed55035b8..9c2594c1ba 100644
--- a/src/resolve/resolved-dnssd.c
+++ b/src/resolve/resolved-dnssd.c
@@ -207,9 +207,7 @@ int dnssd_load(Manager *manager) {
}
int dnssd_update_rrs(DnssdService *s) {
- _cleanup_free_ char *n = NULL;
- _cleanup_free_ char *service_name = NULL;
- _cleanup_free_ char *full_name = NULL;
+ _cleanup_free_ char *n = NULL, *service_name = NULL, *full_name = NULL;
int r;
assert(s);