]> git.ipfire.org Git - pakfire.git/commitdiff
downloader: Drop using FALSE
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Jun 2021 16:00:15 +0000 (16:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Jun 2021 16:00:15 +0000 (16:00 +0000)
This is no longer defined

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/downloader.c

index b5f28b7480caa985aa0f134f3959dc480d209f73..ba6a7626b0a7e27d365a704d3fa65bc12d72e6d1 100644 (file)
@@ -871,7 +871,7 @@ static int pakfire_mirrorlist_check_mirrorlist(struct pakfire_mirrorlist* ml,
        int r = 1;
 
        r = json_object_object_get_ex(root, "type", &typeobj);
-       if (r == FALSE) {
+       if (!r) {
                ERROR(ml->pakfire, "mirrorlist does not have a 'type' attribute\n");
                goto ERROR;
        }
@@ -924,7 +924,7 @@ int pakfire_mirrorlist_read(struct pakfire_mirrorlist* ml, const char* path) {
 
        // Add the new mirrors
        r = json_object_object_get_ex(json, "mirrors", &mirrors);
-       if (r == FALSE) {
+       if (!r) {
                DEBUG(ml->pakfire, "Mirrorlist has no mirrors\n");
                r = 0;
                goto ERROR;
@@ -940,7 +940,7 @@ int pakfire_mirrorlist_read(struct pakfire_mirrorlist* ml, const char* path) {
                // Find URL
                struct json_object* urlobj;
                r = json_object_object_get_ex(mirror, "url", &urlobj);
-               if (r == FALSE)
+               if (!r)
                        goto NEXT;
 
                const char* url = json_object_get_string(urlobj);