summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2012-08-22 23:38:19 +0200
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2012-08-22 23:39:45 +0200
commit585b3ebea4312dbfa86ad9f4a72f0014fe2eacec (patch)
tree4fbbbb6d28d14020b33ebd2c4dc227367ae84d67 /sd
parent04fd2bf36e7100132f1ee555d9c84640baf1747b (diff)
Remove extended initializer list -- use memset for BDADDR_ANY.
Change-Id: Iea10ffdf6443a33c3dd6106b69c126945763b778
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/remotecontrol/BluetoothServer.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx
index 0bbedb480926..556bc590f717 100644
--- a/sd/source/ui/remotecontrol/BluetoothServer.cxx
+++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx
@@ -160,7 +160,8 @@ void BluetoothServer::execute()
sockaddr_rc aAddr;
aAddr.rc_family = AF_BLUETOOTH;
- aAddr.rc_bdaddr = {{0, 0, 0, 0, 0, 0}}; // BDADDR_ANY is broken
+// aAddr.rc_bdaddr = {{0, 0, 0, 0, 0, 0}}; // BDADDR_ANY is broken
+ memset( &aAddr.rc_bdaddr, 0, sizeof( aAddr.rc_bdaddr ) );
aAddr.rc_channel = 5;
if ( bind( aSocket, (sockaddr*) &aAddr, sizeof(aAddr)) < 0 ) {