aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-helper-transport-bluetooth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-helper-transport-bluetooth.c')
-rw-r--r--src/transport/gnunet-helper-transport-bluetooth.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/transport/gnunet-helper-transport-bluetooth.c b/src/transport/gnunet-helper-transport-bluetooth.c
index f12303982..43eccf0aa 100644
--- a/src/transport/gnunet-helper-transport-bluetooth.c
+++ b/src/transport/gnunet-helper-transport-bluetooth.c
@@ -1070,7 +1070,6 @@ read_from_the_socket (void *sock,
1070 return count; 1070 return count;
1071} 1071}
1072 1072
1073
1074/** 1073/**
1075 * Open the bluetooth interface for reading/writing 1074 * Open the bluetooth interface for reading/writing
1076 * 1075 *
@@ -1088,8 +1087,7 @@ open_device (struct HardwareInfos *dev)
1088 addr.btAddr = 0; 1087 addr.btAddr = 0;
1089 addr.port = BT_PORT_ANY; 1088 addr.port = BT_PORT_ANY;
1090 1089
1091 if (GNUNET_OK != 1090 if (GNUNET_NETWORK_socket_bind (dev->handle, (const SOCKADDR*)&addr, sizeof (SOCKADDR_BTH), 0) != GNUNET_OK)
1092 GNUNET_NETWORK_socket_bind (dev->handle, (const SOCKADDR*)&addr, sizeof (SOCKADDR_BTH)))
1093 { 1091 {
1094 fprintf (stderr, "Failed to bind the socket: "); 1092 fprintf (stderr, "Failed to bind the socket: ");
1095 if (GetLastError() == WSAENETDOWN) 1093 if (GetLastError() == WSAENETDOWN)