summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Kleiner <mario.kleiner.de@gmail.com>2015-07-29 14:39:01 +0200
committerIlia Mirkin <imirkin@alum.mit.edu>2015-08-03 14:17:09 -0400
commit0deb1fcc6d1099db698ff8c512a4884708a458ec (patch)
tree8a9e4b2cc88996e032135653acdcad338d51bce2
parent5212dbd7e5eba35fdd6578b30f5b0c8c8543081b (diff)
present: Fixup return type of nouveau_present_init()
Make it a Bool consistently, as declared in header. Reported-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
-rw-r--r--src/nouveau_present.c4
1 files 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;