Stmt: Error on deprecated when/local usage

This has been around since Zeek v4.1, so it was warned about in Zeek 5.0
LTS and we could've removed it with 5.1.

Also removed merge_top_scope() from the zeek::detail namespace, it's
unused now.

Updated the when-aggregates test somehow. I'm not quite sure what had
been tested there :-/
This commit is contained in:
Arne Welzel 2023-03-17 14:52:28 +01:00
parent 5ef62b2de8
commit bb80d80218
9 changed files with 18 additions and 36 deletions

View file

@ -18,7 +18,7 @@ global h: opaque of Broker::Store;
function print_index(k: any)
{
when ( local r = Broker::get(h, k) )
when [k] ( local r = Broker::get(h, k) )
{
print "master", k, r$status, r$result;
}
@ -88,7 +88,7 @@ global inserted: event();
function print_index(k: any)
{
when ( local r = Broker::get(h, k) )
when [k] ( local r = Broker::get(h, k) )
{
print "clone", k, r$status, r$result;
}