mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Mark global val_mgr as deprecated and fix uses of it to use namespaced version
This commit is contained in:
parent
3098dd6fbb
commit
86fdf0eaa9
134 changed files with 1579 additions and 1580 deletions
|
@ -34,7 +34,7 @@ function precompile_pcap_filter%(id: PcapFilterID, s: string%): bool
|
|||
// lookups and limit the ID space so that that doesn't grow too
|
||||
// large.
|
||||
zeek::emit_builtin_error(fmt("PCAP filter ids must remain below 100 (is %" PRId64 ")", id->AsInt()));
|
||||
return val_mgr->False();
|
||||
return zeek::val_mgr->False();
|
||||
}
|
||||
|
||||
bool success = true;
|
||||
|
@ -43,7 +43,7 @@ function precompile_pcap_filter%(id: PcapFilterID, s: string%): bool
|
|||
if ( ps && ! ps->PrecompileFilter(id->ForceAsInt(), s->CheckString()) )
|
||||
success = false;
|
||||
|
||||
return val_mgr->Bool(success);
|
||||
return zeek::val_mgr->Bool(success);
|
||||
%}
|
||||
|
||||
## Installs a PCAP filter that has been precompiled with
|
||||
|
@ -72,7 +72,7 @@ function Pcap::install_pcap_filter%(id: PcapFilterID%): bool
|
|||
if ( ps && ! ps->SetFilter(id->ForceAsInt()) )
|
||||
success = false;
|
||||
|
||||
return val_mgr->Bool(success);
|
||||
return zeek::val_mgr->Bool(success);
|
||||
%}
|
||||
|
||||
## Returns a string representation of the last PCAP error.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue