mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-11 07:31:25 +02:00
making gcc 4.0 happy
This commit is contained in:
@@ -392,7 +392,7 @@ string NATCompiler_ipt::PrintRule::_printDstService(RuleElementOSrv *rel)
|
||||
if (TagService::isA(srv))
|
||||
{
|
||||
ostr << "-m mark --mark "
|
||||
<< TagService::cast(srv)->getCode() << " ";
|
||||
<< TagService::constcast(srv)->getCode() << " ";
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
@@ -861,7 +861,7 @@ string PolicyCompiler_ipt::PrintRule::_printDstService(RuleElementSrv *rel)
|
||||
if (TagService::isA(srv))
|
||||
{
|
||||
ostr << "-m mark --mark "
|
||||
<< TagService::cast(srv)->getCode() << " ";
|
||||
<< TagService::constcast(srv)->getCode() << " ";
|
||||
}
|
||||
if (UserService::isA(srv))
|
||||
{
|
||||
|
||||
@@ -256,7 +256,7 @@ void NATCompiler_pf::PrintRule::_printPort(Service *srv,bool print_range_end)
|
||||
}
|
||||
if (TagService::isA(srv))
|
||||
{
|
||||
compiler->output << "tagged " << TagService::cast(srv)->getCode() << " ";
|
||||
compiler->output << "tagged " << TagService::constcast(srv)->getCode() << " ";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -562,7 +562,7 @@ string PolicyCompiler_pf::PrintRule::_printDstService(Service *srv,bool neg)
|
||||
|
||||
if (TagService::isA(srv))
|
||||
{
|
||||
str << "tagged " << TagService::cast(srv)->getCode() << " ";
|
||||
str << "tagged " << TagService::constcast(srv)->getCode() << " ";
|
||||
}
|
||||
|
||||
return str.str();
|
||||
|
||||
Reference in New Issue
Block a user