From: ticktock35 Date: Mon, 15 Dec 2008 05:31:34 +0000 (+0000) Subject: opkg: fixing some trivial defects while reviewing code X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7c760fc01b4e62b571f5b296601c5798c758fb41;p=oweals%2Fopkg-lede.git opkg: fixing some trivial defects while reviewing code git-svn-id: http://opkg.googlecode.com/svn/trunk@165 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- diff --git a/libopkg/opkg_cmd.c b/libopkg/opkg_cmd.c index f5d78da..56649ea 100644 --- a/libopkg/opkg_cmd.c +++ b/libopkg/opkg_cmd.c @@ -812,7 +812,7 @@ static int opkg_info_status_cmd(opkg_conf_t *conf, int argc, char **argv, int in char *pkg_name = NULL; char **pkg_fields = NULL; int n_fields = 0; - char *buff ; // = (char *)malloc(1); + char *buff ; if (argc > 0) { pkg_name = argv[0]; diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c index 01d5875..aa17c9b 100644 --- a/libopkg/opkg_install.c +++ b/libopkg/opkg_install.c @@ -45,7 +45,6 @@ typedef void (*sighandler_t)(int); #include "xsystem.h" #include "user.h" -int satisfy_dependencies_for(opkg_conf_t *conf, pkg_t *pkg); static int verify_pkg_installable(opkg_conf_t *conf, pkg_t *pkg); static int unpack_pkg_control_files(opkg_conf_t *conf, pkg_t *pkg); @@ -399,7 +398,6 @@ int opkg_satisfy_all_dependences(opkg_conf_t *conf) return 0; } - static int check_conflicts_for(opkg_conf_t *conf, pkg_t *pkg) {