From: Michael Tremer Date: Thu, 10 Jun 2021 16:00:15 +0000 (+0000) Subject: downloader: Drop using FALSE X-Git-Tag: 0.9.28~1284 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=013f1b33fc9a2e24df61108202845ddedd711faa;p=pakfire.git downloader: Drop using FALSE This is no longer defined Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/downloader.c b/src/libpakfire/downloader.c index b5f28b748..ba6a7626b 100644 --- a/src/libpakfire/downloader.c +++ b/src/libpakfire/downloader.c @@ -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);