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

Kristian Høgsberg krh at bitplanet.net
Sat Aug 27 09:07:42 PDT 2011


On Fri, Aug 26, 2011 at 6:41 PM, Paulo Zanoni <przanoni at gmail.com> wrote:
> All clients were segfaulting on my machine.

Thanks, that's a great fix, committed.

Kristian

> 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
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>


More information about the wayland-devel mailing list