diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-10-24 15:14:09 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-10-25 16:37:22 +0200 |
commit | 0a6c0745681f544508177f9abb93f9d637b2d002 (patch) | |
tree | a1f02f1ffb506fa8e14532fc199666104418f756 /src/resolve/resolved-resolv-conf.c | |
parent | 1bcefad91907e134a853430f18689b50e39ac5f7 (diff) | |
download | systemd-0a6c0745681f544508177f9abb93f9d637b2d002.tar.gz |
resolved: avoid allocation
While at it, constify the argument.
Diffstat (limited to 'src/resolve/resolved-resolv-conf.c')
-rw-r--r-- | src/resolve/resolved-resolv-conf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/resolve/resolved-resolv-conf.c b/src/resolve/resolved-resolv-conf.c index dfc9a948e3..7b487d50c6 100644 --- a/src/resolve/resolved-resolv-conf.c +++ b/src/resolve/resolved-resolv-conf.c @@ -334,7 +334,6 @@ static int write_stub_resolv_conf_contents(FILE *f, OrderedSet *dns, OrderedSet } int manager_write_resolv_conf(Manager *m) { - _cleanup_ordered_set_free_ OrderedSet *dns = NULL, *domains = NULL; _cleanup_free_ char *temp_path_uplink = NULL, *temp_path_stub = NULL; _cleanup_fclose_ FILE *f_uplink = NULL, *f_stub = NULL; |