summaryrefslogtreecommitdiff
path: root/src/util/client.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2013-06-20 15:32:31 +0000
committerDavid Barksdale <amatus.amongus@gmail.com>2013-06-20 15:32:31 +0000
commit787064590f251187bfbe6e33da38c5782f80ada2 (patch)
treec7f9e9a509e3b5eadfc5347a47c36eea01d99428 /src/util/client.c
parente5af03c2e73f6e4ee8558e29e99ff39a8d7204d2 (diff)
downloadgnunet-787064590f251187bfbe6e33da38c5782f80ada2.tar.gz
gnunet-787064590f251187bfbe6e33da38c5782f80ada2.zip
Fixed GNUNET_CLIENT_service_test on FreeBSD.
This should also fix any other platform with AF_UNIX that is not Linux or Mingw.
Diffstat (limited to 'src/util/client.c')
-rw-r--r--src/util/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/client.c b/src/util/client.c
index 73b912cc6..b1ceede87 100644
--- a/src/util/client.c
+++ b/src/util/client.c
@@ -863,7 +863,7 @@ GNUNET_CLIENT_service_test (const char *service,
863#endif 863#endif
864 if (GNUNET_OK != 864 if (GNUNET_OK !=
865 GNUNET_NETWORK_socket_bind (sock, (const struct sockaddr *) &s_un, 865 GNUNET_NETWORK_socket_bind (sock, (const struct sockaddr *) &s_un,
866 slen)) 866 slen, GNUNET_BIND_EXCLUSIVE))
867 { 867 {
868 /* failed to bind => service must be running */ 868 /* failed to bind => service must be running */
869 GNUNET_free (unixpath); 869 GNUNET_free (unixpath);
@@ -913,7 +913,7 @@ GNUNET_CLIENT_service_test (const char *service,
913 { 913 {
914 if (GNUNET_OK != 914 if (GNUNET_OK !=
915 GNUNET_NETWORK_socket_bind (sock, (const struct sockaddr *) &s_in, 915 GNUNET_NETWORK_socket_bind (sock, (const struct sockaddr *) &s_in,
916 sizeof (s_in))) 916 sizeof (s_in), GNUNET_BIND_EXCLUSIVE))
917 { 917 {
918 /* failed to bind => service must be running */ 918 /* failed to bind => service must be running */
919 GNUNET_free (hostname); 919 GNUNET_free (hostname);
@@ -946,7 +946,7 @@ GNUNET_CLIENT_service_test (const char *service,
946 { 946 {
947 if (GNUNET_OK != 947 if (GNUNET_OK !=
948 GNUNET_NETWORK_socket_bind (sock, (const struct sockaddr *) &s_in6, 948 GNUNET_NETWORK_socket_bind (sock, (const struct sockaddr *) &s_in6,
949 sizeof (s_in6))) 949 sizeof (s_in6), GNUNET_BIND_EXCLUSIVE))
950 { 950 {
951 /* failed to bind => service must be running */ 951 /* failed to bind => service must be running */
952 GNUNET_free (hostname); 952 GNUNET_free (hostname);