Fixed compilation errors on Windows.

This commit is contained in:
Volker Ruppert 2017-03-08 22:09:50 +00:00
parent 0d4cba9744
commit 30a20ba50f
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ void bx_socket_pktmover_c::rx_timer_handler(void *this_ptr)
void bx_socket_pktmover_c::rx_timer(void)
{
int nbytes = 0;
unsigned int slen = sizeof(sin);
socklen_t slen = sizeof(sin);
Bit8u rxbuf[BX_PACKET_BUFSIZE];
// is socket open and bound?

View File

@ -408,7 +408,7 @@ void CDECL intHandler(int sig)
int CDECL main(int argc, char **argv)
{
int c, i, n;
unsigned int slen;
socklen_t slen;
fd_set rfds;
Bit8u buf[BX_PACKET_BUFSIZE];
ethernet_header_t *ethhdr = (ethernet_header_t *)buf;