[Libreoffice-commits] .: sd/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Aug 22 14:40:13 PDT 2012
sd/source/ui/remotecontrol/BluetoothServer.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 585b3ebea4312dbfa86ad9f4a72f0014fe2eacec
Author: Andrzej J.R. Hunt <andrzej at ahunt.org>
Date: Wed Aug 22 23:38:19 2012 +0200
Remove extended initializer list -- use memset for BDADDR_ANY.
Change-Id: Iea10ffdf6443a33c3dd6106b69c126945763b778
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 ) {
More information about the Libreoffice-commits
mailing list