making gcc 4.0 happy

This commit is contained in:
Vadim Kurland
2008-06-06 16:26:21 +00:00
parent 3e10a9b6f5
commit 3f2c8d7780
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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))
{
+1 -1
View File
@@ -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() << " ";
}
}
+1 -1
View File
@@ -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();