diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-01-03 15:08:05 +0400 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2023-01-16 18:46:03 +0100 |
commit | daa500cab6a4f8fdaa1a0689a5d39a6b67213801 (patch) | |
tree | 1cf2818f63d2b9aec0e4557b763617721cb117fe /hw/usb | |
parent | 09aa7be196ebd94d68dc06c62fdcea040e2bd196 (diff) | |
download | qemu-daa500cab6a4f8fdaa1a0689a5d39a6b67213801.zip qemu-daa500cab6a4f8fdaa1a0689a5d39a6b67213801.tar.gz qemu-daa500cab6a4f8fdaa1a0689a5d39a6b67213801.tar.bz2 |
ccid-card-emulated: fix cast warning/error
../hw/usb/ccid-card-emulated.c: In function 'handle_apdu_thread':
../hw/usb/ccid-card-emulated.c:251:24: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
251 | assert((unsigned long)event > 1000);
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230103110814.3726795-2-marcandre.lureau@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/usb')
-rw-r--r-- | hw/usb/ccid-card-emulated.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/ccid-card-emulated.c b/hw/usb/ccid-card-emulated.c index ee41a81..c328660 100644 --- a/hw/usb/ccid-card-emulated.c +++ b/hw/usb/ccid-card-emulated.c @@ -248,7 +248,7 @@ static void *handle_apdu_thread(void* arg) WITH_QEMU_LOCK_GUARD(&card->vreader_mutex) { while (!QSIMPLEQ_EMPTY(&card->guest_apdu_list)) { event = QSIMPLEQ_FIRST(&card->guest_apdu_list); - assert((unsigned long)event > 1000); + assert(event != NULL); QSIMPLEQ_REMOVE_HEAD(&card->guest_apdu_list, entry); if (event->p.data.type != EMUL_GUEST_APDU) { DPRINTF(card, 1, "unexpected message in handle_apdu_thread\n"); |