G
Guillaume Yziquel
Hello all.
I wish to bind a socket with the following code:
where serversocket is declared with
At compile-time, I get:
I do not really understand how to get rid of this warning.
Guillaume.
I wish to bind a socket with the following code:
if (bind(s, (struct sockadrr *) serversocket, sizeof(serversocket)) != 0) {
perror("Failed to bind the server socket to a file.");
exit(1);
};
where serversocket is declared with
struct sockaddr_un serversocket;
At compile-time, I get:
main.c:29: warning: passing argument 2 of ´bind´ from incompatible pointer type.
I do not really understand how to get rid of this warning.
Guillaume.