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>
This commit is contained in:
Hans de Goede 2014-03-03 09:51:36 +01:00
parent b972851ce4
commit 2f2967173b

View File

@ -12,7 +12,7 @@ static void
print_xid(void* ptr, void* v)
{
XID *x = v;
printf("%ld", *x);
printf("%ld", (long)(*x));
}
static void