Arachno331
11-15-2007, 05:58 PM
Someone please help me solve this error!
socket.c: In function ‘Do_accept_connections’:
socket.c:252: warning: passing argument 1 of ‘strncpy’ from incompatible pointer type
This is line 252:
/*
errno = 0;
host_info = gethostbyaddr((char *)&client_ptr->address.sin_addr,
sizeof(client_ptr->address.sin_addr), AF_INET);
theError = errno;
*/
How would I fix this?
socket.c: In function ‘Do_accept_connections’:
socket.c:252: warning: passing argument 1 of ‘strncpy’ from incompatible pointer type
This is line 252:
/*
errno = 0;
host_info = gethostbyaddr((char *)&client_ptr->address.sin_addr,
sizeof(client_ptr->address.sin_addr), AF_INET);
theError = errno;
*/
How would I fix this?