gcc 4.3.2 accept sys call warrning incompatible pointer type

Hi all, this warning is driving me nuts. I use -pedantic with -Wall and -Werror so this needs to be fixed.
BUILD: GNU-Linux-x86

Any ideas?

struct sockaddr_in server_addr;
int addr_len = sizeof (server_addr);

fd = accept(link->socket_fd,
(struct sockaddr_in *) &server_addr,
(socklen_t *) &addr_len));

warning: passing argument 2 of �accept' from incompatible pointer type

Thanks for you comments.

Try casting with "(struct sockaddr *)"

ahh, thanks.
Thats weird that it would be different that the initializer.