diff options
Diffstat (limited to 'libopkg/opkg_conf.c')
-rw-r--r-- | libopkg/opkg_conf.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libopkg/opkg_conf.c b/libopkg/opkg_conf.c index 425c72b..bd73317 100644 --- a/libopkg/opkg_conf.c +++ b/libopkg/opkg_conf.c @@ -341,12 +341,7 @@ int opkg_conf_init(opkg_conf_t *conf, const args_t *args) void opkg_conf_deinit(opkg_conf_t *conf) { - int err; - char *cmd; - - sprintf_alloc(&cmd, "rm -fr %s\n", conf->tmp_dir); - err = xsystem(cmd); - free(cmd); + rm_r(conf->tmp_dir); free(conf->tmp_dir); free(conf->lists_dir); |