diff options
author | Rhys Kidd <rhyskidd@gmail.com> | 2016-10-28 23:04:43 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-11-01 13:47:32 -0400 |
commit | 514a61ddb179ee7f560746a6d86f1f4d75c8b646 (patch) | |
tree | a653decc8fbbd41312f489ec74bc11558115f4ac /xts5 | |
parent | cc5049f42a9ec1179fd03d990d5b23a7895afd6f (diff) |
xts5: Fix format specifier type warning in XtSetSelectionTimeout
XtSetSelectionTimeout.c: In function:
XtSetSelectionTimeout.c:90:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
sprintf(ebuf, "ERROR: Expected 5000 received %d", value_good);
^
XtSetSelectionTimeout.c:98:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
sprintf(ebuf, "ERROR: Expected 10000 received %d", value_good);
^
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
Diffstat (limited to 'xts5')
-rw-r--r-- | xts5/XtC/XtSetSelectionTimeout.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xts5/XtC/XtSetSelectionTimeout.m b/xts5/XtC/XtSetSelectionTimeout.m index dbaf75cd..4e975132 100644 --- a/xts5/XtC/XtSetSelectionTimeout.m +++ b/xts5/XtC/XtSetSelectionTimeout.m @@ -81,7 +81,7 @@ pid_t pid2; XtRealizeWidget(topLevel); tet_infoline("TEST: Verify the default"); if ((value_good = XtGetSelectionTimeout()) != (unsigned int)5000){ - sprintf(ebuf, "ERROR: Expected 5000 received %d", value_good); + sprintf(ebuf, "ERROR: Expected 5000 received %lu", value_good); tet_infoline(ebuf); tet_result(TET_FAIL); } @@ -89,7 +89,7 @@ pid_t pid2; XtSetSelectionTimeout((unsigned int )10000); tet_infoline("TEST: selectionTimeout is 10000 milliseconds"); if ((value_good = XtGetSelectionTimeout()) != (unsigned int)10000){ - sprintf(ebuf, "ERROR: Expected 10000 received %d", value_good); + sprintf(ebuf, "ERROR: Expected 10000 received %lu", value_good); tet_infoline(ebuf); tet_result(TET_FAIL); } |