summaryrefslogtreecommitdiff
path: root/hw/xfree86/parser
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2011-03-15 11:01:50 -0400
committerAdam Jackson <ajax@redhat.com>2011-03-28 13:00:58 -0400
commit2762eef8c34b48be803226f48fc71f790286f968 (patch)
treeecb7ed3bc8b72b5b4e288ff2a9dc5147ccd067d9 /hw/xfree86/parser
parent5275fbe2e226e1c2a46d26288390c8ef6e1a6a52 (diff)
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 <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'hw/xfree86/parser')
-rw-r--r--hw/xfree86/parser/Pointer.c2
1 files changed, 1 insertions, 1 deletions
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: