[mutter/gbsneto/wayland-stutter: 6/7] gpu-kms: Return NULL, not FALSE
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/wayland-stutter: 6/7] gpu-kms: Return NULL, not FALSE
- Date: Wed, 21 Mar 2018 18:51:04 +0000 (UTC)
commit 14b7e79d3c10190b2d9bf8f2a28d5264f62a5b98
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Mar 17 21:48:44 2018 -0300
gpu-kms: Return NULL, not FALSE
Another small mistake spotted while working on #77. This
function returns a pointer, thus we should return NULL,
not FALSE.
Issue: #77
src/backends/native/meta-gpu-kms.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backends/native/meta-gpu-kms.c b/src/backends/native/meta-gpu-kms.c
index d8b512342..11951f557 100644
--- a/src/backends/native/meta-gpu-kms.c
+++ b/src/backends/native/meta-gpu-kms.c
@@ -778,7 +778,7 @@ meta_gpu_kms_new (MetaMonitorManagerKms *monitor_manager_kms,
kms_fd = meta_launcher_open_restricted (launcher, kms_file_path, error);
if (kms_fd == -1)
- return FALSE;
+ return NULL;
gpu_kms = g_object_new (META_TYPE_GPU_KMS,
"monitor-manager", monitor_manager_kms,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]