Skip to content
This repository has been archived by the owner on Sep 28, 2019. It is now read-only.

server.c: fix clang warning #19

Closed
wants to merge 1 commit into from
Closed

server.c: fix clang warning #19

wants to merge 1 commit into from

Conversation

ilg-ul
Copy link
Contributor

@ilg-ul ilg-ul commented Aug 25, 2017

/Users/ilg/Work/openocd/openocd.git/src/server/server.c:305:22: error: incompatible pointer types passing 'struct sockaddr_in *' to
parameter of type 'struct sockaddr *' [-Werror,-Wincompatible-pointer-types]
getsockname(c->fd, &addr_in, &addr_in_size);
^~~~~~~~
/usr/include/sys/socket.h:687:50: note: passing argument to parameter here
int     getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict)

/Users/ilg/Work/openocd/openocd.git/src/server/server.c:305:22: error: incompatible pointer types passing 'struct sockaddr_in *' to
      parameter of type 'struct sockaddr *' [-Werror,-Wincompatible-pointer-types]
                getsockname(c->fd, &addr_in, &addr_in_size);
                                   ^~~~~~~~
/usr/include/sys/socket.h:687:50: note: passing argument to parameter here
int     getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant