summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-09-03 17:56:36 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-09-03 17:56:51 +0200
commit47a3882f5374efb297e8e7d504795dff8735bc47 (patch)
tree39cb0f06153e8b8dcf538ac6354815cf5434f24d
parent38b1e57af2e9190ae31568b75a6dabdf9d68889e (diff)
downloadkmyfirewall-47a3882f5374efb297e8e7d504795dff8735bc47.tar.gz
kmyfirewall-47a3882f5374efb297e8e7d504795dff8735bc47.zip
Fix FTBFS with GCC6
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 403970a02a6ffc16072080a0356745111a6483a8)
-rw-r--r--kmyfirewall/core/iptchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmyfirewall/core/iptchain.cpp b/kmyfirewall/core/iptchain.cpp
index fdacdac..c377d1b 100644
--- a/kmyfirewall/core/iptchain.cpp
+++ b/kmyfirewall/core/iptchain.cpp
@@ -173,7 +173,7 @@ IPTRule* IPTChain::addRule( const TQString& rule_name, KMFError *err, int index
KMFError* IPTChain::delRule( IPTRule* rule ) {
kdDebug() << "KMFError* IPTChain::delRule( IPTRule* rule )" << endl;
if ( m_ruleset.count() < 1 )
- return false;
+ return 0;
TQString name = rule->name();
if ( m_ruleset.find( rule ) != -1 ) {