Make it a Bool consistently, as declared in header.
Reported-by: Ilia Mirkin <[email protected]>
Signed-off-by: Mario Kleiner <[email protected]>
---
src/nouveau_present.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/nouveau_present.c b/src/nouveau_present.c
index 4de1e6e..699a58d 100644
--- a/src/nouveau_present.c
+++ b/src/nouveau_present.c
@@ -293,7 +293,7 @@ nouveau_present_fini(ScreenPtr screen)
}
}
-int
+Bool
nouveau_present_init(ScreenPtr screen)
{
ScrnInfoPtr scrn = xf86ScreenToScrn(screen);
@@ -304,7 +304,7 @@ nouveau_present_init(ScreenPtr screen)
present = pNv->present = calloc(1, sizeof(*present));
if (!present)
- return -ENOMEM;
+ return FALSE;
present->info.version = PRESENT_SCREEN_INFO_VERSION;
present->info.get_crtc = nouveau_present_crtc;
--
1.9.1
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau