[PATCH] connection: fix libffi usage, our functions return void

Paulo Zanoni przanoni at gmail.com
Fri Aug 26 15:41:05 PDT 2011


All clients were segfaulting on my machine.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
---
 src/connection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/connection.c b/src/connection.c
index 6dfb0b9..cfdc8d8 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -653,7 +653,7 @@ wl_connection_demarshal(struct wl_connection *connection,
 
 	closure->count = i;
 	ffi_prep_cif(&closure->cif, FFI_DEFAULT_ABI,
-		     closure->count, &ffi_type_uint32, closure->types);
+		     closure->count, &ffi_type_void, closure->types);
 
 	wl_connection_consume(connection, size);
 
-- 
1.7.4.1



More information about the wayland-devel mailing list