summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRhys Kidd <rhyskidd@gmail.com>2016-10-28 23:37:57 -0400
committerAdam Jackson <ajax@redhat.com>2016-11-01 13:44:12 -0400
commit4890edad006e3eb52c913ab0d21a517da4edc658 (patch)
treee8f5daca8646fbf82c54b0b68fc7514bdfe77a86
parent466bb81caf04769a27cff8a489f9683b13f3e728 (diff)
xts5: Fix missing variable for format specifier
XtGetKeysymTable.c:258:5: warning: format '%ld' expects a matching 'long int' argument [-Wformat=] Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
-rw-r--r--xts5/Xt12/XtGetKeysymTable.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/xts5/Xt12/XtGetKeysymTable.m b/xts5/Xt12/XtGetKeysymTable.m
index db22f1b8..1d8ab917 100644
--- a/xts5/Xt12/XtGetKeysymTable.m
+++ b/xts5/Xt12/XtGetKeysymTable.m
@@ -209,7 +209,7 @@ Xlib returns to what Xt returns*/
for (i = min_keycode; i <= max_keycode; i++ ) {
if (keysym_good[i] == NoSymbol) {
if (keysym_return[i] != NoSymbol) {
- sprintf(ebuf, "ERROR: min_keycode + %d should be NoSymbol, is %ld", (long)keysym_return[i]);
+ sprintf(ebuf, "ERROR: min_keycode + %d should be NoSymbol, is %ld", i, (long)keysym_return[i]);
tet_infoline(ebuf);
tet_result(TET_FAIL);
}