Move everything in util.h to zeek::util namespace.

This commit includes renaming a number of methods prefixed with bro_ to be prefixed with zeek_.
This commit is contained in:
Tim Wojtulewicz 2020-08-06 10:40:24 -07:00
parent 8862b585fa
commit 8d2d867a65
179 changed files with 1277 additions and 1033 deletions

View file

@ -36,7 +36,7 @@ public:
const double close, const bool terminating)
: zeek::threading::InputMessage<WriterBackend>("Rotate", backend),
frontend(frontend),
rotated_path(copy_string(rotated_path)), open(open),
rotated_path(zeek::util::copy_string(rotated_path)), open(open),
close(close), terminating(terminating) { }
virtual ~RotateMessage() { delete [] rotated_path; }
@ -113,7 +113,7 @@ WriterFrontend::WriterFrontend(const WriterBackend::WriterInfo& arg_info, zeek::
fields = nullptr;
const char* w = arg_writer->GetType()->AsEnumType()->Lookup(arg_writer->InternalInt());
name = copy_string(fmt("%s/%s", arg_info.path, w));
name = zeek::util::copy_string(zeek::util::fmt("%s/%s", arg_info.path, w));
if ( local )
{