summaryrefslogtreecommitdiff
path: root/recipes/opie-irdaapplet/files/learning-cpp.patch
blob: 60e46fd1339120d3922e4a775967532aa4be81a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/irda.cpp b/irda.cpp
index d57104b..848ddb4 100644
--- a/irda.cpp
+++ b/irda.cpp
@@ -54,7 +54,7 @@ IrdaApplet::IrdaApplet ( QWidget *parent, const char *name ) :
     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 =