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:
parent
405cf4cb3d
commit
a6e1fd9cca
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user