]> git.tuebingen.mpg.de Git - paraslash.git/commit
net.c: Use proper socket type for __get_sock_name().
authorAndre Noll <maan@systemlinux.org>
Fri, 10 Jun 2011 14:03:30 +0000 (16:03 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 6 Jul 2011 08:05:06 +0000 (10:05 +0200)
commita1a7eeae4f3814f8244de16cd3fcf6b5bcab066e
tree6ade4356753dc2d5f21b70143514883b8d3e4704
parent49e464524ba5e6f73041160eec93c8ba5fe5ea18
net.c: Use proper socket type for __get_sock_name().

This patch gets rid of

net.c:652:33: warning: incompatible pointer types passing 'int (int, __SOCKADDR_ARG, socklen_t *restrict)', expected 'int (*)(int, struct sockaddr *, socklen_t *)' [-pedantic]
        return __get_sock_name(sockfd, getsockname);
                                       ^~~~~~~~~~~

when compiling with clang.
net.c