aboutsummaryrefslogtreecommitdiff
path: root/src/wine.c
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2020-12-19 00:31:40 +0100
committerJan200101 <sentrycraft123@gmail.com>2020-12-19 00:31:40 +0100
commit79e6835eb9478680530e66e12dc365993a08b788 (patch)
tree477a96ea6f0ae70df4c1c0daa3e3dcfc3337bcc3 /src/wine.c
parent24288734e78aa2242b86dde8c770278fa1f5e05c (diff)
downloadpolecat-79e6835eb9478680530e66e12dc365993a08b788.tar.gz
polecat-79e6835eb9478680530e66e12dc365993a08b788.zip
remove useless struct, add json length type macro
- previously used progress struct was a leftover from when libcurl examples were used - json_object_array_length returns int pre 0.13 and site_t on any other version
Diffstat (limited to 'src/wine.c')
-rw-r--r--src/wine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wine.c b/src/wine.c
index 29283cd..46bfd46 100644
--- a/src/wine.c
+++ b/src/wine.c
@@ -45,7 +45,7 @@ COMMAND(wine, download)
char* choice = argv[i];
- for (size_t i = 0; i < json_object_array_length(versions); ++i)
+ for (JSON_LENGTH_TYPE i = 0; i < json_object_array_length(versions); ++i)
{
value = json_object_array_get_idx(versions, i);
json_object_object_get_ex(value, "version", &temp);
@@ -165,7 +165,7 @@ COMMAND(wine, list)
if(intty) puts("Installable wine versions:");
- for (size_t i = 0; i < json_object_array_length(versions); ++i)
+ for (JSON_LENGTH_TYPE i = 0; i < json_object_array_length(versions); ++i)
{
value = json_object_array_get_idx(versions, i);
json_object_object_get_ex(value, "version", &val);