mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
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:
@@ -12,7 +12,7 @@ static void
|
||||
print_xid(void* ptr, void* v)
|
||||
{
|
||||
XID *x = v;
|
||||
printf("%ld", *x);
|
||||
printf("%ld", (long)(*x));
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user