[PATCH] dmx: fix OsAbort()-related build error in examples/xinput.c

Rami Ylimäki ext-rami.ylimaki at nokia.com
Mon Mar 1 06:24:31 PST 2010


ext Peter Hutterer wrote:
> 5b9a52be7e975e59e0bbc6b43539ecaff96b2ecd changed the server to use OsAbort()
> instead of abort(). xinput in dmx is a client program though and fails to
> link if it tries to use OsAbort(). Switch it back to using abort().
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> CC: Rami Ylimaki <ext-rami.ylimaki at nokia.com>
> ---
>  hw/dmx/examples/xinput.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/hw/dmx/examples/xinput.c b/hw/dmx/examples/xinput.c
> index 7421be3..b12daf2 100644
> --- a/hw/dmx/examples/xinput.c
> +++ b/hw/dmx/examples/xinput.c
> @@ -233,7 +233,7 @@ int main(int argc, char **argv)
>          int         total = 0;
>  
>  #define ADD(type)                                     \
> -        if (cnt >= MAX_EVENTS) OsAbort();             \
> +        if (cnt >= MAX_EVENTS) abort();             \
>          names[cnt] = #type;                           \
>          type(dev, event_type[cnt], event_list[cnt]);  \
>          if (event_type[cnt]) ++cnt
>   
Sorry about that, I didn't check the context well enough.

Reviewed-by: Rami Ylimaki <ext-rami.ylimaki at nokia.com>



More information about the xorg-devel mailing list