1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-25 20:57:29 +01:00

fixed warning "warning: deprecated conversion from string constant to \'char*\'"

This commit is contained in:
Vadim Kurland 2010-03-01 04:44:02 +00:00
parent 405cf4cb3d
commit a6e1fd9cca

View File

@ -474,8 +474,8 @@ void PolicyCompiler_ipfw::PrintRule::_printDstService(RuleElementSrv *rel)
compiler->warning(rule, "ipfw can not match \"any IP option\" ");
else
{
char *option_names[] = {"lsrr", "ssrr", "rr", "ts", NULL};
for (char **cptr=option_names; *cptr; cptr++)
const char *option_names[] = {"lsrr", "ssrr", "rr", "ts", NULL};
for (const char* *cptr=option_names; *cptr; cptr++)
if (ip_srv->getBool(*cptr)) options.push_back(*cptr);
}