Switch zeek:🆔:lookup to zeek:🆔:find

For parity with Scope since it now uses Find instead of Lookup
This commit is contained in:
Jon Siwek 2020-05-14 18:00:18 -07:00
parent 7843416e51
commit 4debad8caf
59 changed files with 339 additions and 339 deletions

View file

@ -361,7 +361,7 @@ static std::vector<std::string> get_script_signature_files()
// Parse rule files defined on the script level.
char* script_signature_files =
copy_string(zeek::id::lookup_val("signature_files")->AsString()->CheckString());
copy_string(zeek::id::find_val("signature_files")->AsString()->CheckString());
char* tmp = script_signature_files;
char* s;
@ -722,7 +722,7 @@ zeek::detail::SetupResult zeek::detail::setup(int argc, char** argv,
if ( ! options.pcap_file && ! options.interface )
{
const auto& interfaces_val = zeek::id::lookup_val("interfaces");
const auto& interfaces_val = zeek::id::find_val("interfaces");
if ( interfaces_val )
{
char* interfaces_str =
@ -780,7 +780,7 @@ zeek::detail::SetupResult zeek::detail::setup(int argc, char** argv,
if ( profiling_interval > 0 )
{
const auto& profiling_file = zeek::id::lookup_val("profiling_file");
const auto& profiling_file = zeek::id::find_val("profiling_file");
profiling_logger = new ProfileLogger(profiling_file->AsFile(),
profiling_interval);