From eead012999abddd34ca221afcb4a4ba8cb10b174 Mon Sep 17 00:00:00 2001 From: Alexey Khromov Date: Wed, 18 Mar 2026 15:54:07 +0300 Subject: [PATCH] fix for GCC15 --- source/bforce/prot_emsi.c | 14 +++++++------- source/include/prot_emsi.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/bforce/prot_emsi.c b/source/bforce/prot_emsi.c index 93bffd3..43ed833 100644 --- a/source/bforce/prot_emsi.c +++ b/source/bforce/prot_emsi.c @@ -286,9 +286,9 @@ static int sm_tx_waitseq(s_tx_emsidat *d) static s_states st_tx_emsidat[] = { - { "sm_tx_init", sm_tx_init }, - { "sm_tx_senddat", sm_tx_senddat }, - { "sm_tx_waitseq", sm_tx_waitseq } + { "sm_tx_init", (int (*)(void *))sm_tx_init }, + { "sm_tx_senddat", (int (*)(void *))sm_tx_senddat }, + { "sm_tx_waitseq", (int (*)(void *))sm_tx_waitseq } }; int emsi_send_emsidat(s_emsi *local_emsi) @@ -570,10 +570,10 @@ static int sm_rx_getdat(s_rx_emsidat *d) static s_states st_rx_emsidat[] = { - { "sm_rx_init", sm_rx_init }, - { "sm_rx_sendnak", sm_rx_sendnak }, - { "sm_rx_waitseq", sm_rx_waitseq }, - { "sm_rx_getdat", sm_rx_getdat } + { "sm_rx_init", (int (*)(void *))sm_rx_init }, + { "sm_rx_sendnak", (int (*)(void *))sm_rx_sendnak }, + { "sm_rx_waitseq", (int (*)(void *))sm_rx_waitseq }, + { "sm_rx_getdat", (int (*)(void *))sm_rx_getdat } }; int emsi_recv_emsidat(s_emsi *remote_emsi) diff --git a/source/include/prot_emsi.h b/source/include/prot_emsi.h index fab290a..d91dd3f 100644 --- a/source/include/prot_emsi.h +++ b/source/include/prot_emsi.h @@ -72,7 +72,7 @@ struct states { const char *st_name; - int (*proc)(); + int (*proc)(void *); }; typedef struct states s_states;