sockets : warning sur la fonction accept()
Bonsoir,
il y a un warning dont je ne comprends pas la raison d'être
Code:
1 2
|
newfd = accept(sockfd, (struct sockaddr *)&client_addr, &sin_size); |
sachant que j'ai déclaré mes variables ainsi :
Code:
1 2 3 4 5 6 7
|
int sockfd = -1;
int newfd = 0;
int sin_size = 0;
struct sockaddr_in client_addr;
sin_size = sizeof(struct sockaddr_in); |
Merci de vos réponses :)
EDIT : j'ai oublié le plus important :p
Le warning est le suivant
Code:
1 2
|
main.c:50: attention : pointer targets in passing argument 3 of accept differ in signedness |
Voili voilou :)