projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix all warnings when compiling with mingw64.
[tinc]
/
src
/
net.c
diff --git
a/src/net.c
b/src/net.c
index
a04ba00
..
64bca94
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-297,7
+297,7
@@
static void check_network_activity(fd_set * readset, fd_set * writeset) {
if(FD_ISSET(c->socket, readset)) {
if(c->status.connecting) {
c->status.connecting = false;
if(FD_ISSET(c->socket, readset)) {
if(c->status.connecting) {
c->status.connecting = false;
- getsockopt(c->socket, SOL_SOCKET, SO_ERROR, &result, &len);
+ getsockopt(c->socket, SOL_SOCKET, SO_ERROR,
(void *)
&result, &len);
if(!result)
finish_connecting(c);
if(!result)
finish_connecting(c);