[PATCH 3/4] xfree86: warning fix

Adam Jackson ajax at redhat.com
Tue Mar 15 08:05:06 PDT 2011


Pointer.c: In function 'xf86parsePointerSection':
Pointer.c:192:5: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'long unsigned int'

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 hw/xfree86/parser/Pointer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/xfree86/parser/Pointer.c b/hw/xfree86/parser/Pointer.c
index 65397cd..e8ad290 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:
-- 
1.7.3.5



More information about the xorg-devel mailing list