[PATCH] dmx: fix OsAbort()-related build error in examples/xinput.c
Fernando Carrijo
fcarrijo at yahoo.com.br
Thu Feb 25 21:15:36 PST 2010
On Fri, 26 Feb 2010 10:14:00 +1000, Peter Hutterer <peter.hutterer at who-t.net> 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
> --
> 1.6.6.1
Reviewed-by: Fernando Carrijo <fcarrijo at yahoo.com.br>
More information about the xorg-devel
mailing list