diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-09 18:01:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-09 18:01:16 +0000 |
commit | 25e37143ca6ddc3ea7d3c2e3fd7c66002a45e060 (patch) | |
tree | 8796fd0e148c6914897d6c53d25c6327b5a8263b /src/transport/gnunet-helper-transport-bluetooth.c | |
parent | 0904af031c4f1411419b3047f893e0672957d146 (diff) | |
download | gnunet-25e37143ca6ddc3ea7d3c2e3fd7c66002a45e060.tar.gz gnunet-25e37143ca6ddc3ea7d3c2e3fd7c66002a45e060.zip |
-switching (again) to named sockets, see #2887
Diffstat (limited to 'src/transport/gnunet-helper-transport-bluetooth.c')
-rw-r--r-- | src/transport/gnunet-helper-transport-bluetooth.c | 4 |
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 343aacd19..9d5318663 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) |