mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Broker changes: adopt to recent IntrusivePtr API changes
This commit is contained in:
parent
d9de6c4522
commit
f080c8c294
4 changed files with 30 additions and 34 deletions
|
@ -586,14 +586,14 @@ void Attributes::CheckAttr(Attr* a)
|
|||
break;
|
||||
}
|
||||
|
||||
if ( a->AttrExpr()->Type()->Tag() != TYPE_STRING )
|
||||
if ( a->GetExpr()->GetType()->Tag() != TYPE_STRING )
|
||||
{
|
||||
Error("&broker_store must take a string argument");
|
||||
break;
|
||||
}
|
||||
|
||||
// Temporary since Broker does not support ListVals - and we cannot easily convert to set/vector
|
||||
if ( type->AsTableType()->IndexTypes()->length() != 1 )
|
||||
if ( type->AsTableType()->IndexTypes().size() != 1 )
|
||||
{
|
||||
Error("&broker_store only supports one-element set/table indexes");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue