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;