diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2020-12-19 00:31:40 +0100 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2020-12-19 00:31:40 +0100 |
commit | 79e6835eb9478680530e66e12dc365993a08b788 (patch) | |
tree | 477a96ea6f0ae70df4c1c0daa3e3dcfc3337bcc3 /src/wine.c | |
parent | 24288734e78aa2242b86dde8c770278fa1f5e05c (diff) | |
download | polecat-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |