From 585b3ebea4312dbfa86ad9f4a72f0014fe2eacec Mon Sep 17 00:00:00 2001 From: "Andrzej J.R. Hunt" Date: Wed, 22 Aug 2012 23:38:19 +0200 Subject: Remove extended initializer list -- use memset for BDADDR_ANY. Change-Id: Iea10ffdf6443a33c3dd6106b69c126945763b778 --- sd/source/ui/remotecontrol/BluetoothServer.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sd') 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 ) { -- cgit