summaryrefslogtreecommitdiff
authorerik <erik>2007-05-10 23:34:29 (UTC)
committer erik <erik>2007-05-10 23:34:29 (UTC)
commite87affd3d9a8a7d705d0dc3d1a4905e1e3f902d0 (patch) (side-by-side diff)
treea5b03a9e3dbff8f004f10d33c15fd86601f213f9
parent34975323367e4a903886cd317b34192f1271a1f2 (diff)
downloadopie-e87affd3d9a8a7d705d0dc3d1a4905e1e3f902d0.zip
opie-e87affd3d9a8a7d705d0dc3d1a4905e1e3f902d0.tar.gz
opie-e87affd3d9a8a7d705d0dc3d1a4905e1e3f902d0.tar.bz2
application of proper parens for the socket call check
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/irdaapplet/irda.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/applets/irdaapplet/irda.cpp b/core/applets/irdaapplet/irda.cpp
index d57104b..848ddb4 100644
--- a/core/applets/irdaapplet/irda.cpp
+++ b/core/applets/irdaapplet/irda.cpp
@@ -41,33 +41,33 @@
//===========================================================================
IrdaApplet::IrdaApplet ( QWidget *parent, const char *name ) :
QWidget ( parent, name ),
m_irda_active( false ),
m_irda_discovery_active( false ),
m_receive_active( false ),
m_receive_state_changed( false ),
m_popup( 0 ),
m_wasOn( false ),
m_wasDiscover( false )
{
setFixedHeight( AppLnk::smallIconSize() );
setFixedWidth( AppLnk::smallIconSize() );
- if (m_sockfd = ::socket ( PF_INET, SOCK_DGRAM, IPPROTO_IP ) == -1)
+ if ( ( m_sockfd = ::socket ( PF_INET, SOCK_DGRAM, IPPROTO_IP ) ) == -1)
perror ( "failed grabbing IrDA socket" );
m_irdaOnPixmap =
Opie::Core::OResource::loadPixmap( "irdaapplet/irdaon",
Opie::Core::OResource::SmallIcon );
m_irdaOffPixmap =
Opie::Core::OResource::loadPixmap( "irdaapplet/irdaoff",
Opie::Core::OResource::SmallIcon );
m_irdaDiscoveryOnPixmap =
Opie::Core::OResource::loadPixmap( "irdaapplet/magglass",
Opie::Core::OResource::SmallIcon );
m_receiveActivePixmap =
Opie::Core::OResource::loadPixmap( "irdaapplet/receive",
Opie::Core::OResource::SmallIcon );
QCopChannel* chan = new QCopChannel("QPE/IrDaApplet", this );