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:
parent
b972851ce4
commit
2f2967173b
|
@ -12,7 +12,7 @@ static void
|
||||||
print_xid(void* ptr, void* v)
|
print_xid(void* ptr, void* v)
|
||||||
{
|
{
|
||||||
XID *x = v;
|
XID *x = v;
|
||||||
printf("%ld", *x);
|
printf("%ld", (long)(*x));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue