Be consistent in how to check return codes for these functions.
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Tue, 29 Jun 2010 01:56:10 +0000 (01:56 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Tue, 29 Jun 2010 01:56:10 +0000 (01:56 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@541 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/opkg_cmd.c

index 1c9f6fc96fb28aa3a6e460bec30690df2b51945c..c5ba3f400ec128d877ec22d892997f3d6e47de4c 100644 (file)
@@ -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();