diff options
author | Francois Andriot <francois.andriot@free.fr> | 2012-05-05 11:11:35 +0200 |
---|---|---|
committer | Francois Andriot <francois.andriot@free.fr> | 2012-05-05 11:11:35 +0200 |
commit | 01d4b602ce624d96a0d9574e8e5f6fba53f2d9d9 (patch) | |
tree | 44a49e67fe0e2b487938d3af116a8804950c8ca7 /redhat/applications/kmyfirewall/kmyfirewall-3.5.13-fix_gcc47_compilation.patch | |
parent | 4a5605e233305678da64153c9664a0d06f00bcbe (diff) | |
download | tde-packaging-01d4b602ce624d96a0d9574e8e5f6fba53f2d9d9.tar.gz tde-packaging-01d4b602ce624d96a0d9574e8e5f6fba53f2d9d9.zip |
RHEL/Fedora: more application fixes ...
Diffstat (limited to 'redhat/applications/kmyfirewall/kmyfirewall-3.5.13-fix_gcc47_compilation.patch')
-rw-r--r-- | redhat/applications/kmyfirewall/kmyfirewall-3.5.13-fix_gcc47_compilation.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/redhat/applications/kmyfirewall/kmyfirewall-3.5.13-fix_gcc47_compilation.patch b/redhat/applications/kmyfirewall/kmyfirewall-3.5.13-fix_gcc47_compilation.patch new file mode 100644 index 000000000..4daf67e9b --- /dev/null +++ b/redhat/applications/kmyfirewall/kmyfirewall-3.5.13-fix_gcc47_compilation.patch @@ -0,0 +1,39 @@ +--- ./kmyfirewall/genericinterface/kmfgenericinterfaceprotocol.cpp.orig 2012-05-02 04:58:04.051212974 -0400 ++++ ./kmyfirewall/genericinterface/kmfgenericinterfaceprotocol.cpp 2012-05-02 05:07:11.093803088 -0400 +@@ -305,14 +305,15 @@ + if ( m_zone && ! m_host ) { + if ( onOff ) { + m_protocolUsage = 0; +- if ( KMFProtocolUsage* pro = m_zone->findProtocolUsageByProtocolUuid( protUsage->protocol()->uuid() ) ) { ++ KMFProtocolUsage* pro; ++ if ( pro = m_zone->findProtocolUsageByProtocolUuid( protUsage->protocol()->uuid() ) ) { + m_protocolUsage = pro; + } else { + KMFUndoEngine::instance()->startTransaction( + m_zone, + i18n("Add protocol %1 to zone %2.").tqarg( protUsage->protocol()->name() ).tqarg( m_zone->guiName() ) + ); +- KMFProtocolUsage * pro = m_zone->addProtocolUsage( protUsage->protocol()->uuid(), protUsage->protocol()->getDOMTree() ); ++ pro = m_zone->addProtocolUsage( protUsage->protocol()->uuid(), protUsage->protocol()->getDOMTree() ); + + if ( pro ) { + kdDebug() << "Added Protocol to zone: " << m_zone-> name() << endl; +@@ -341,15 +342,16 @@ + } else if ( m_host ) { + if ( onOff ) { + m_protocolUsage = 0; ++ KMFProtocolUsage* pro; + +- if ( KMFProtocolUsage* pro = m_host->findProtocolUsageByProtocolUuid( protUsage->protocol()->uuid() ) ) { ++ if ( pro = m_host->findProtocolUsageByProtocolUuid( protUsage->protocol()->uuid() ) ) { + m_protocolUsage = pro; + } else { + KMFUndoEngine::instance()->startTransaction( + m_host, + i18n("Add protocol %1 to host %2.").tqarg( protUsage->protocol()->name() ).tqarg( m_host->guiName() ) + ); +- KMFProtocolUsage * pro = m_host->addProtocolUsage( protUsage->protocol()->uuid(), protUsage->protocol() ->getDOMTree() ); ++ pro = m_host->addProtocolUsage( protUsage->protocol()->uuid(), protUsage->protocol() ->getDOMTree() ); + + if ( pro ) { + kdDebug() << "Added Protocol to host: " << m_host-> name() << endl; |