From ded5d5a42cf7baf67396ac80058bb93b7a9b417b Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Thu, 27 Jun 2024 08:48:33 +0000 Subject: [PATCH] fix build failure with gcc-14 Signed-off-by: Wang Mingyu --- src/ifd/ifdhandler.c | 2 +- src/ifd/process.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifd/ifdhandler.c b/src/ifd/ifdhandler.c index 12686c9..ebd1b53 100644 --- a/src/ifd/ifdhandler.c +++ b/src/ifd/ifdhandler.c @@ -236,7 +236,7 @@ static void ifdhandler_run(ifd_reader_t * reader) sock->fd = -1; } else { - sock->fd = ifd_get_eventfd(reader, &sock->events); + sock->fd = ifd_get_eventfd(reader, (short int *)&sock->events); } if (sock->fd == -1) { ifd_debug(1, "events inactive for reader %s", reader->name); diff --git a/src/ifd/process.c b/src/ifd/process.c index 07c839c..cc9d60a 100644 --- a/src/ifd/process.c +++ b/src/ifd/process.c @@ -366,7 +366,7 @@ static int do_verify(ifd_reader_t * reader, int unit, ct_tlv_parser_t * args, ct_tlv_get_int(args, CT_TAG_TIMEOUT, &timeout); if (ct_tlv_get_string(args, CT_TAG_MESSAGE, msgbuf, sizeof(msgbuf)) > 0) message = msgbuf; - if (!ct_tlv_get_opaque(args, CT_TAG_PIN_DATA, &data, &data_len)) + if (!ct_tlv_get_opaque(args, CT_TAG_PIN_DATA, &data, (size_t *)&data_len)) return IFD_ERROR_MISSING_ARG; rc = ifd_card_perform_verify(reader, unit, timeout, message,