From 2762eef8c34b48be803226f48fc71f790286f968 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 15 Mar 2011 11:01:50 -0400 Subject: [PATCH] xfree86: warning fix Pointer.c: In function 'xf86parsePointerSection': Pointer.c:192:5: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'long unsigned int' Reviewed-by: Keith Packard Signed-off-by: Adam Jackson --- hw/xfree86/parser/Pointer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/parser/Pointer.c b/hw/xfree86/parser/Pointer.c index 65397cd81..e8ad290f9 100644 --- a/hw/xfree86/parser/Pointer.c +++ b/hw/xfree86/parser/Pointer.c @@ -189,7 +189,7 @@ xf86parsePointerSection (void) if (xf86getSubToken (&(ptr->inp_comment)) != NUMBER || val.num < 0) { Error (ZAXISMAPPING_MSG, NULL); } - if (asprintf(&s, "%ul %ul", val1, val.num) == -1) + if (asprintf(&s, "%lu %u", val1, val.num) == -1) s = NULL; break; case XAXIS: