diff options
author | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-01 22:39:12 (EST) |
---|---|---|
committer | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-01 22:39:12 (EST) |
commit | 908c671d6b3807854d41b4b51c584d16d7c2694b (patch) | |
tree | c3f120f1bfb0fed4a7a80b0759233e2cf38d3a38 /libopkg/libopkg.c | |
parent | 5c617e296570ed33196988e96481a4ef3e6e626e (diff) |
Cleanup error_list stuff a bit more.
- Remove reverse_error_list.
- Push messages on to the tail of the list.
- Move the print function in with the other error list functions.
- Indentation and variable name cleanups.
git-svn-id: http://opkg.googlecode.com/svn/trunk@238 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/libopkg.c')
-rw-r--r-- | libopkg/libopkg.c | 5 |
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; } |