From bd1c5142701e7cdd2176a951feabdf852f3ead57 Mon Sep 17 00:00:00 2001 From: graham.gower Date: Thu, 26 Nov 2009 23:09:15 -0500 Subject: Fix some errno abuse. git-svn-id: http://opkg.googlecode.com/svn/trunk@393 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/opkg_install.c') diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c index 594214b..819410f 100644 --- a/libopkg/opkg_install.c +++ b/libopkg/opkg_install.c @@ -236,7 +236,7 @@ unpack_pkg_control_files(opkg_conf_t *conf, pkg_t *pkg) opkg_message(conf, OPKG_ERROR, "%s: Failed to create temporary directory '%s': %s\n", __FUNCTION__, pkg->tmp_unpack_dir, strerror(errno)); - return errno; + return -1; } err = pkg_extract_control_files_to_dir(pkg, pkg->tmp_unpack_dir); @@ -265,7 +265,7 @@ unpack_pkg_control_files(opkg_conf_t *conf, pkg_t *pkg) fprintf(stderr, "%s: failed to open %s: %s\n", __FUNCTION__, conffiles_file_name, strerror(errno)); free(conffiles_file_name); - return errno; + return -1; } free(conffiles_file_name); -- cgit v0.9.1