diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-08-07 12:18:46 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-08-07 12:18:46 -0400 |
commit | 1c006759796d7fcbd9f40a797853fc0528204839 (patch) | |
tree | 52c5df28cfcfd7251f79615fc1a9090da57a7f9c | |
parent | b113f83658f16df39531f98ea300eccd079f6138 (diff) | |
download | stasis-1c006759796d7fcbd9f40a797853fc0528204839.tar.gz |
download() returns long, not int
-rw-r--r-- | src/delivery.c | 2 |
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; |