From b5c93eb1fd49b2efde812c329d298c0bd54c969b Mon Sep 17 00:00:00 2001 From: Sudip Mukherjee Date: Mon, 24 Nov 2025 13:57:31 +0000 Subject: [PATCH] Fix build failures with gcc-15 Signed-off-by: Sudip Mukherjee --- src/vtp.c | 4 ++-- src/yersinia.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vtp.c b/src/vtp.c index b740bbe..aa5a8e5 100644 --- a/src/vtp.c +++ b/src/vtp.c @@ -1458,8 +1458,8 @@ vtp_load_values(struct pcap_data *data, void *values) case VTP_REQUEST: aux_short = (u_int16_t *)ptr; #ifdef LBL_ALIGN - memcpy((void *)&aux_short2, (void *)aux_short, 4); - vtp->start_val = ntohs(aux_short2); + memcpy((void *)aux_short2, (void *)aux_short, 4); + vtp->start_val = ntohs(*aux_short2); #else vtp->start_val = ntohs(*aux_short); #endif diff --git a/src/yersinia.c b/src/yersinia.c index 67199e0..ab193c7 100644 --- a/src/yersinia.c +++ b/src/yersinia.c @@ -927,7 +927,7 @@ handle_signals_parent( void ) * POSIX functions for signals */ int -posix_signal( int signo, void (*handler)() ) +posix_signal( int signo, void (*handler)(int) ) { struct sigaction act;