Convert found_primary to bool in get_plane_id

This commit is contained in:
Simon Ser 2021-02-01 14:24:33 +01:00
parent b8ecceb48b
commit 9b2da80c23

View file

@ -148,7 +148,7 @@ static uint32_t get_plane_id(struct drm_t *drm)
drmModePlaneResPtr plane_resources;
uint32_t i;
uint32_t ret = 0;
int found_primary = 0;
bool found_primary = false;
plane_resources = drmModeGetPlaneResources(drm->fd);
if (!plane_resources) {
@ -192,7 +192,7 @@ static uint32_t get_plane_id(struct drm_t *drm)
}
}
found_primary = 1;
found_primary = true;
}
drmModeFreeObjectProperties(props);