| author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2012-08-22 21:38:19 (GMT) |
|---|---|---|
| committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2012-08-22 21:39:45 (GMT) |
| commit | 585b3ebea4312dbfa86ad9f4a72f0014fe2eacec (patch) (side-by-side diff) | |
| tree | 4fbbbb6d28d14020b33ebd2c4dc227367ae84d67 | |
| parent | 04fd2bf36e7100132f1ee555d9c84640baf1747b (diff) | |
| download | core-585b3ebea4312dbfa86ad9f4a72f0014fe2eacec.zip core-585b3ebea4312dbfa86ad9f4a72f0014fe2eacec.tar.gz | |
Remove extended initializer list -- use memset for BDADDR_ANY.
Change-Id: Iea10ffdf6443a33c3dd6106b69c126945763b778
| -rw-r--r-- | sd/source/ui/remotecontrol/BluetoothServer.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx index 0bbedb4..556bc59 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 ) { |
