aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-helper-transport-bluetooth.c
diff options
context:
space:
mode:
authorClaudiu Olteanu <claudiu@140774ce-b5e7-0310-ab8b-a85725594a96>2013-09-19 10:34:38 +0000
committerClaudiu Olteanu <claudiu@140774ce-b5e7-0310-ab8b-a85725594a96>2013-09-19 10:34:38 +0000
commit087783d2a3da65123b8aa339148f33978fa704df (patch)
tree8d2ee45c28af40420417220a3c1fa315fbfbd5fb /src/transport/gnunet-helper-transport-bluetooth.c
parentde0c0bc6e16e21087f8f7eb6c9d5450884e5fae8 (diff)
downloadgnunet-087783d2a3da65123b8aa339148f33978fa704df.tar.gz
gnunet-087783d2a3da65123b8aa339148f33978fa704df.zip
solving some binding errors for W32
Diffstat (limited to 'src/transport/gnunet-helper-transport-bluetooth.c')
-rw-r--r--src/transport/gnunet-helper-transport-bluetooth.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/transport/gnunet-helper-transport-bluetooth.c b/src/transport/gnunet-helper-transport-bluetooth.c
index bdf397401..f07fd23aa 100644
--- a/src/transport/gnunet-helper-transport-bluetooth.c
+++ b/src/transport/gnunet-helper-transport-bluetooth.c
@@ -1092,6 +1092,11 @@ open_device (struct HardwareInfos *dev)
1092 if (GNUNET_NETWORK_socket_bind (dev->handle, (const SOCKADDR*)&addr, sizeof (SOCKADDR_BTH), 0) != GNUNET_OK) 1092 if (GNUNET_NETWORK_socket_bind (dev->handle, (const SOCKADDR*)&addr, sizeof (SOCKADDR_BTH), 0) != GNUNET_OK)
1093 { 1093 {
1094 fprintf (stderr, "Failed to bind the socket: "); 1094 fprintf (stderr, "Failed to bind the socket: ");
1095 if (GetLastError() == WSAENETDOWN)
1096 {
1097 fprintf (stderr, "Please make sure that your Bluetooth device is ON!\n");
1098 ExitProcess (2);
1099 }
1095 print_last_error(); 1100 print_last_error();
1096 return -1; 1101 return -1;
1097 } 1102 }