Browse Source

FIX Compilation GCC-4.0

Stephane Raimbault 20 years ago
parent
commit
7d77328c08
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modbus.c

+ 1 - 1
src/modbus.c

@@ -1249,7 +1249,7 @@ void modbus_listen_tcp(modbus_param_t *mb_param)
 	int ret;
 	int ret;
 	int new_socket;
 	int new_socket;
 	struct sockaddr_in addr;
 	struct sockaddr_in addr;
-	int addrlen;
+	socklen_t addrlen;
 
 
 	addr.sin_family = AF_INET;
 	addr.sin_family = AF_INET;
 	/* The modbus port is < 1024
 	/* The modbus port is < 1024