I wish to bind a socket with the following code:
if (bind(s, (struct sockadrr *) serversocket, sizeof(serversocket)) != 0) {where serversocket is declared with
perror("Failed to bind the server socket to a file.");
exit(1);
};
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.