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