This is no longer defined
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
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;
}
// 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;
// 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);