aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-08-07 12:18:46 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-08-07 12:18:46 -0400
commit1c006759796d7fcbd9f40a797853fc0528204839 (patch)
tree52c5df28cfcfd7251f79615fc1a9090da57a7f9c
parentb113f83658f16df39531f98ea300eccd079f6138 (diff)
downloadstasis-1c006759796d7fcbd9f40a797853fc0528204839.tar.gz
download() returns long, not int
-rw-r--r--src/delivery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/delivery.c b/src/delivery.c
index 9c735b9..1b16f39 100644
--- a/src/delivery.c
+++ b/src/delivery.c
@@ -1229,7 +1229,7 @@ int delivery_get_installer(struct Delivery *ctx, char *installer_url) {
sprintf(script_path, "%s/%s", ctx->storage.tmpdir, installer);
if (access(script_path, F_OK)) {
// Script doesn't exist
- int fetch_status = download(installer_url, script_path, NULL);
+ long fetch_status = download(installer_url, script_path, NULL);
if (HTTP_ERROR(fetch_status) || fetch_status < 0) {
// download failed
return -1;