Permalink
Browse files

MSocketDevice::bind() returns false not -1 on error...

This must have been missed when the code was ported from the POSIX socket API to the Qt one...

Caught by icpc.
  • Loading branch information...
1 parent cb5d81f commit f8f49a30d9160ddb97a0dde7e197087d71497d84 @daniel-kristjansson daniel-kristjansson committed Jun 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythupnp/mmulticastsocketdevice.cpp
@@ -70,8 +70,8 @@ MMulticastSocketDevice::MMulticastSocketDevice(
setAddressReusable(true);
- if (bind(m_address, m_port) < 0)
- LOG(VB_GENERAL, LOG_ERR, LOC + "bind failed " + ENO);
+ if (!bind(m_address, m_port))
+ LOG(VB_GENERAL, LOG_ERR, LOC + "bind failed");
}
MMulticastSocketDevice::~MMulticastSocketDevice()

0 comments on commit f8f49a3

Please sign in to comment.