Replace deprecated usage of BifFunc:: with zeek::BifFunc::

Names of functions also changed slightly, like bro_fmt -> fmt_bif.

Should generally be unusual/unexpected to see somone calling these
directly from C++ in their plugin, but since technically possible in
previous versions, I also removed the "private" restriction on accessing
the BifReturnVal member.
This commit is contained in:
Jon Siwek 2020-05-14 14:21:30 -07:00
parent 0db5c920f2
commit ca1e5fe4be
4 changed files with 6 additions and 10 deletions

View file

@ -781,7 +781,7 @@ void init_builtin_funcs_subdirs()
bool check_built_in_call(BuiltinFunc* f, CallExpr* call)
{
if ( f->TheFunc() != BifFunc::bro_fmt )
if ( f->TheFunc() != zeek::BifFunc::fmt_bif)
return true;
const expr_list& args = call->Args()->Exprs();