From c0fae254580423e0c7e5a6f140645e0db8fdfb37 Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 05:19:50 +0000 Subject: [PATCH] opkg: fix typos git-svn-id: http://opkg.googlecode.com/svn/trunk@120 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- libopkg/opkg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libopkg/opkg.c b/libopkg/opkg.c index 223cfaf..a6bb23c 100644 --- a/libopkg/opkg.c +++ b/libopkg/opkg.c @@ -497,7 +497,7 @@ opkg_install_package (opkg_t *opkg, const char *package_name, opkg_progress_call if (err) { opkg_package_free (pdata.package); - return OPKG_UNKOWN_ERROR; + return OPKG_UNKNOWN_ERROR; } /* write out status files and file lists */ @@ -573,6 +573,7 @@ opkg_remove_package (opkg_t *opkg, const char *package_name, opkg_progress_callb int opkg_upgrade_package (opkg_t *opkg, const char *package_name, opkg_progress_callback_t progress_callback, void *user_data) { + int err; pkg_t *pkg; opkg_progress_data_t pdata; @@ -617,7 +618,7 @@ opkg_upgrade_package (opkg_t *opkg, const char *package_name, opkg_progress_call err = opkg_configure_packages (opkg->conf, NULL); if (err) - OPKG_UNKNOWN_ERROR; + return OPKG_UNKNOWN_ERROR; progress (pdata, 100); opkg_package_free (pdata.package); return 0; -- 2.25.1