summaryrefslogtreecommitdiffstats
path: root/libopkg/libopkg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/libopkg.c')
-rw-r--r--libopkg/libopkg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libopkg/libopkg.c b/libopkg/libopkg.c
index 418a324..787a510 100644
--- a/libopkg/libopkg.c
+++ b/libopkg/libopkg.c
@@ -36,7 +36,7 @@ int default_opkg_message_callback(opkg_conf_t *conf, message_level_t level,
return 0;
} else {
if ( level == OPKG_ERROR ){
- push_error_list(&error_list, msg);
+ push_error_list(msg);
} else
printf("%s",msg);
}
@@ -131,7 +131,8 @@ opkg_op (int argc, char *argv[])
args_deinit (&args);
if (err)
{
- opkg_print_error_list (&opkg_conf);
+ print_error_list();
+ free_error_list();
return err;
}