diff --git a/src/resolve/resolvconf-compat.c b/src/resolve/resolvconf-compat.c index d3ddec755a..9b556469a7 100644 --- a/src/resolve/resolvconf-compat.c +++ b/src/resolve/resolvconf-compat.c @@ -2,18 +2,18 @@ #include +#include "sd-json.h" + #include "alloc-util.h" #include "build.h" #include "extract-word.h" #include "fileio.h" -#include "format-table.h" -#include "help-util.h" #include "log.h" -#include "options.h" #include "resolvconf-compat.h" #include "resolvectl.h" #include "string-util.h" #include "strv.h" +#include "verbs.h" typedef enum LookupType { LOOKUP_TYPE_REGULAR, @@ -21,35 +21,22 @@ typedef enum LookupType { LOOKUP_TYPE_EXCLUSIVE, /* -x */ } LookupType; -static int resolvconf_help(void) { - _cleanup_(table_unrefp) Table *options = NULL; - int r; - - r = option_parser_get_help_table_ns("resolvconf", &options); - if (r < 0) - return r; - - help_cmdline("-a INTERFACE