summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_download.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-21 20:52:44 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-21 20:52:44 (EST)
commit1482f86dcc9188ddc70644195e0f3ec230157f13 (patch)
treefe3580f1ddc39a25f691cefa19abc176639e661e /libopkg/opkg_download.c
parent5d24a0917e15506f9e9f53a2e19aa431bb90e660 (diff)
Return negative error code from opkg_download(), not curl error codes.
git-svn-id: http://opkg.googlecode.com/svn/trunk@509 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/opkg_download.c')
-rw-r--r--libopkg/opkg_download.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c
index 080326c..cfbf351 100644
--- a/libopkg/opkg_download.c
+++ b/libopkg/opkg_download.c
@@ -144,7 +144,7 @@ opkg_download(const char *src, const char *dest_file_name,
opkg_msg(ERROR, "Failed to download %s: %s.\n",
src, curl_easy_strerror(res));
free(tmp_file_location);
- return res;
+ return -1;
}
}
@@ -174,7 +174,7 @@ opkg_download(const char *src, const char *dest_file_name,
if (res) {
opkg_msg(ERROR, "Failed to download %s, wget returned %d.\n", src, res);
free(tmp_file_location);
- return res;
+ return -1;
}
}
#endif