diff options
author | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2010-06-28 21:56:10 (EDT) |
---|---|---|
committer | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2010-06-28 21:56:10 (EDT) |
commit | 7bf2f7c967e7face05909894fb57b7ee5ce664d3 (patch) | |
tree | 5db98d5b8634e6c3b528dcbc723ef192e76d7bfd | |
parent | ad9f6e4ca18c3b297635dc7c991c42783921dd0b (diff) |
Be consistent in how to check return codes for these functions.
git-svn-id: http://opkg.googlecode.com/svn/trunk@541 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r-- | libopkg/opkg_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libopkg/opkg_cmd.c b/libopkg/opkg_cmd.c index 1c9f6fc..c5ba3f4 100644 --- a/libopkg/opkg_cmd.c +++ b/libopkg/opkg_cmd.c @@ -455,13 +455,13 @@ opkg_install_cmd(int argc, char **argv) for (i=0; i < argc; i++) { arg = argv[i]; - if (opkg_install_by_name(arg) != 0) { + if (opkg_install_by_name(arg)) { opkg_msg(ERROR, "Cannot install package %s.\n", arg); err = -1; } } - if (opkg_configure_packages(NULL) != 0) + if (opkg_configure_packages(NULL)) err = -1; write_status_files_if_changed(); |