summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:19:50 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:19:50 (EST)
commitc0fae254580423e0c7e5a6f140645e0db8fdfb37 (patch)
tree4cf053e3cb22e921a87c52f575507774748e43d0 /libopkg
parentf8cdd15eccf818a39d07beb2a08114f6cf9e402b (diff)
opkg: fix typos
git-svn-id: http://opkg.googlecode.com/svn/trunk@120 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/opkg.c5
1 files 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;