Use an unnamed namespace instead of a static to provide a file-local scope.
This commit is contained in:
@@ -45,7 +45,7 @@ struct Cstring_cmp {
|
||||
/*
|
||||
* The table of commands
|
||||
*/
|
||||
static map<const char *,IoccrfFunc,Cstring_cmp> commands;
|
||||
namespace { map<const char *,IoccrfFunc,Cstring_cmp> commands; }
|
||||
|
||||
/*
|
||||
* Register a command
|
||||
|
||||
Reference in New Issue
Block a user