[Libreoffice-commits] .: sd/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Dec 18 02:13:29 PST 2012
sd/source/ui/remotecontrol/DiscoveryService.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit c0e21788c1c9b98493b41a0020f660f4fa5983f3
Author: Tor Lillqvist <tlillqvist at suse.com>
Date: Tue Dec 18 12:04:55 2012 +0200
Store some (sadly ignored) return values in variables to make debugging easier...
diff --git a/sd/source/ui/remotecontrol/DiscoveryService.cxx b/sd/source/ui/remotecontrol/DiscoveryService.cxx
index 6542062..9d8efa3 100644
--- a/sd/source/ui/remotecontrol/DiscoveryService.cxx
+++ b/sd/source/ui/remotecontrol/DiscoveryService.cxx
@@ -38,6 +38,8 @@ using namespace sd;
DiscoveryService::DiscoveryService() :
mSocket(0)
{
+ int rc;
+
mSocket = socket( AF_INET, SOCK_DGRAM, IPPROTO_UDP );
sockaddr_in aAddr;
@@ -45,14 +47,14 @@ DiscoveryService::DiscoveryService() :
aAddr.sin_addr.s_addr = htonl(INADDR_ANY);
aAddr.sin_port = htons( PORT_DISCOVERY );
- bind( mSocket, (sockaddr*) &aAddr, sizeof(sockaddr_in) );
+ rc = bind( mSocket, (sockaddr*) &aAddr, sizeof(sockaddr_in) );
struct ip_mreq multicastRequest;
multicastRequest.imr_multiaddr.s_addr = inet_addr( "239.0.0.1" );
multicastRequest.imr_interface.s_addr = htonl(INADDR_ANY);
- setsockopt( mSocket, IPPROTO_IP, IP_ADD_MEMBERSHIP,
+ rc = setsockopt( mSocket, IPPROTO_IP, IP_ADD_MEMBERSHIP,
#ifdef WNT
(const char*)
#endif
More information about the Libreoffice-commits
mailing list