Skip to content

Commit

Permalink
cast to avoid pointer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterMute committed May 13, 2012
1 parent d023267 commit 947c140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdbserver/gdb-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ int serve(stlink_t *sl, int port) {
}

unsigned int val = 1;
setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val));
setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char *)&val, sizeof(val));

struct sockaddr_in serv_addr;
memset(&serv_addr,0,sizeof(struct sockaddr_in));
Expand Down

0 comments on commit 947c140

Please sign in to comment.