summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_cmd.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-02 22:51:34 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-02 22:51:34 (EST)
commitb52b1a62772605cad74eeb2082305dd3e3e3b267 (patch)
treedcbac3f900a380aff6c2c284b3f85e3ef7280211 /libopkg/opkg_cmd.c
parent609411c43f5da9bc507aa04f47f9b3ba12a7f510 (diff)
Stop my eyes from bleeding.
Testing shows that the info and status commands give the same output as before. If you find a case where they differ, please let me know. git-svn-id: http://opkg.googlecode.com/svn/trunk@245 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/opkg_cmd.c')
-rw-r--r--libopkg/opkg_cmd.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libopkg/opkg_cmd.c b/libopkg/opkg_cmd.c
index 2d1fc70..cc8134a 100644
--- a/libopkg/opkg_cmd.c
+++ b/libopkg/opkg_cmd.c
@@ -763,7 +763,6 @@ static int opkg_info_status_cmd(opkg_conf_t *conf, int argc, char **argv, int in
pkg_vec_t *available;
pkg_t *pkg;
char *pkg_name = NULL;
- char *pkg_info;
if (argc > 0) {
pkg_name = argv[0];
@@ -781,12 +780,7 @@ static int opkg_info_status_cmd(opkg_conf_t *conf, int argc, char **argv, int in
continue;
}
- pkg_info = pkg_formatted_info(pkg);
- if (pkg_info == NULL)
- break;
-
- printf("%s\n", pkg_info);
- free(pkg_info);
+ pkg_formatted_info(stdout, pkg);
if (conf->verbosity > 1) {
conffile_list_elt_t *iter;