summaryrefslogtreecommitdiffstats
path: root/src/resolve
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2021-03-18 12:54:48 +0100
committerDavid Tardon <dtardon@redhat.com>2021-03-18 13:19:13 +0100
commiteba1eb9066e4f633733b0a0a8f817bad410b7e9d (patch)
treea66b16de898ca7a0f248e180e4a686ce03c098ac /src/resolve
parentresolved-dns-rr: use already existing variable (diff)
downloadsystemd-eba1eb9066e4f633733b0a0a8f817bad410b7e9d.tar.xz
systemd-eba1eb9066e4f633733b0a0a8f817bad410b7e9d.zip
resolved-dns-rr: drop unneeded braces
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolved-dns-rr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-rr.c b/src/resolve/resolved-dns-rr.c
index ffb1605c4c..5b0e601e97 100644
--- a/src/resolve/resolved-dns-rr.c
+++ b/src/resolve/resolved-dns-rr.c
@@ -1136,7 +1136,7 @@ const char *dns_resource_record_to_string(DnsResourceRecord *rr) {
break;
- case DNS_TYPE_OPENPGPKEY: {
+ case DNS_TYPE_OPENPGPKEY:
r = asprintf(&s, "%s", k);
if (r < 0)
return NULL;
@@ -1147,7 +1147,6 @@ const char *dns_resource_record_to_string(DnsResourceRecord *rr) {
if (r < 0)
return NULL;
break;
- }
default:
t = hexmem(rr->generic.data, rr->generic.data_size);