projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trying to port statvfs call to BSD
[oweals/gnunet.git]
/
src
/
util
/
test_connection_timeout.c
diff --git
a/src/util/test_connection_timeout.c
b/src/util/test_connection_timeout.c
index 0590d36d5fe20746887c2a9757086e60845b55c0..c1d9c4c4d4b36b6ff05cf6bdfd2a889ef4c464da 100644
(file)
--- a/
src/util/test_connection_timeout.c
+++ b/
src/util/test_connection_timeout.c
@@
-56,6
+56,7
@@
open_listen_socket ()
#if HAVE_SOCKADDR_IN_SIN_LEN
sa.sin_len = sizeof (sa);
#endif
#if HAVE_SOCKADDR_IN_SIN_LEN
sa.sin_len = sizeof (sa);
#endif
+ sa.sin_family = AF_INET;
sa.sin_port = htons (PORT);
desc = GNUNET_NETWORK_socket_create (AF_INET, SOCK_STREAM, 0);
GNUNET_assert (desc != NULL);
sa.sin_port = htons (PORT);
desc = GNUNET_NETWORK_socket_create (AF_INET, SOCK_STREAM, 0);
GNUNET_assert (desc != NULL);
@@
-82,8
+83,8
@@
send_kilo (void *cls, size_t size, void *buf)
#endif
GNUNET_assert (buf == NULL);
*ok = 0;
#endif
GNUNET_assert (buf == NULL);
*ok = 0;
- GNUNET_CONNECTION_destroy (lsock);
- GNUNET_CONNECTION_destroy (csock);
+ GNUNET_CONNECTION_destroy (lsock
, GNUNET_YES
);
+ GNUNET_CONNECTION_destroy (csock
, GNUNET_YES
);
return 0;
}
#if VERBOSE
return 0;
}
#if VERBOSE