diff options
author | midipix <writeonce@midipix.org> | 2024-02-09 21:03:57 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-02-09 21:03:57 +0000 |
commit | 2f8d3eabcf743d1e398277e7b4e6a03bbdd574ee (patch) | |
tree | 3c61f61fda62595c7a652b2391d01afdc823b2e3 /src/logic/slbt_exec_uninstall.c | |
parent | a05389c24a1156f461ba256a3073d08467d778ec (diff) | |
download | slibtool-2f8d3eabcf743d1e398277e7b4e6a03bbdd574ee.tar.bz2 slibtool-2f8d3eabcf743d1e398277e7b4e6a03bbdd574ee.tar.xz |
uninstall mode: invoke the argv interfaces via the driver-provided wrappers.
Diffstat (limited to 'src/logic/slbt_exec_uninstall.c')
-rw-r--r-- | src/logic/slbt_exec_uninstall.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/logic/slbt_exec_uninstall.c b/src/logic/slbt_exec_uninstall.c index 5c59d3f..9ffed87 100644 --- a/src/logic/slbt_exec_uninstall.c +++ b/src/logic/slbt_exec_uninstall.c @@ -11,8 +11,6 @@ #include <errno.h> #include <sys/stat.h> -#define ARGV_DRIVER - #include <slibtool/slibtool.h> #include "slibtool_driver_impl.h" #include "slibtool_uninstall_impl.h" @@ -37,15 +35,15 @@ static int slbt_uninstall_usage( switch (noclr) { case 0: - argv_usage(fdout,header,optv,arg); + slbt_argv_usage(fdout,header,optv,arg); break; default: - argv_usage_plain(fdout,header,optv,arg); + slbt_argv_usage_plain(fdout,header,optv,arg); break; } - argv_free(meta); + slbt_argv_free(meta); return SLBT_USAGE; } @@ -55,7 +53,7 @@ static int slbt_exec_uninstall_fail( struct argv_meta * meta, int ret) { - argv_free(meta); + slbt_argv_free(meta); slbt_free_exec_ctx(actx); return ret; } @@ -297,7 +295,7 @@ int slbt_exec_uninstall( fdout = slbt_driver_fdout(dctx); /* missing arguments? */ - argv_optv_init(slbt_uninstall_options,optv); + slbt_optv_init(slbt_uninstall_options,optv); if (!iargv[1] && (dctx->cctx->drvflags & SLBT_DRIVER_VERBOSITY_USAGE)) return slbt_uninstall_usage( @@ -307,7 +305,7 @@ int slbt_exec_uninstall( dctx->cctx->drvflags & SLBT_DRIVER_ANNOTATE_NEVER); /* <uninstall> argv meta */ - if (!(meta = argv_get( + if (!(meta = slbt_argv_get( iargv,optv, dctx->cctx->drvflags & SLBT_DRIVER_VERBOSITY_ERRORS ? ARGV_VERBOSITY_ERRORS @@ -377,7 +375,7 @@ int slbt_exec_uninstall( actx,meta, SLBT_NESTED_ERROR(dctx)); - argv_free(meta); + slbt_argv_free(meta); slbt_free_exec_ctx(actx); return 0; |