summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-03-03 09:51:36 +0100
committerHans de Goede <hdegoede@redhat.com>2014-03-10 09:06:57 +0100
commit2f2967173ba0b0a4f7ab013edeaaf11e7c181beb (patch)
tree95e823278b920e2ede4a9d509c8c96366ad00b29 /test
parentb972851ce47b5e3b681a212a43dd71aab94e7a1b (diff)
hashtabletest: Fix warning: format ‘%ld’ expects argument of type ...
This fixes the following compiler warning: hashtabletest.c: In function ‘print_xid’: hashtabletest.c:15:5: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘XID’ [-Wformat=] printf("%ld", *x); ^ Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'test')
-rw-r--r--test/hashtabletest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/hashtabletest.c b/test/hashtabletest.c
index ceadfa7a3..86a0c58c6 100644
--- a/test/hashtabletest.c
+++ b/test/hashtabletest.c
@@ -12,7 +12,7 @@ static void
print_xid(void* ptr, void* v)
{
XID *x = v;
- printf("%ld", *x);
+ printf("%ld", (long)(*x));
}
static void