mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
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:
parent
8862b585fa
commit
8d2d867a65
179 changed files with 1277 additions and 1033 deletions
|
@ -126,7 +126,7 @@ void Reporter::FatalError(const char* fmt, ...)
|
|||
|
||||
va_end(ap);
|
||||
|
||||
set_processing_status("TERMINATED", "fatal_error");
|
||||
zeek::util::set_processing_status("TERMINATED", "fatal_error");
|
||||
fflush(stderr);
|
||||
fflush(stdout);
|
||||
_exit(1);
|
||||
|
@ -142,7 +142,7 @@ void Reporter::FatalErrorWithCore(const char* fmt, ...)
|
|||
|
||||
va_end(ap);
|
||||
|
||||
set_processing_status("TERMINATED", "fatal_error");
|
||||
zeek::util::set_processing_status("TERMINATED", "fatal_error");
|
||||
abort();
|
||||
}
|
||||
|
||||
|
@ -195,7 +195,7 @@ void Reporter::InternalError(const char* fmt, ...)
|
|||
|
||||
va_end(ap);
|
||||
|
||||
set_processing_status("TERMINATED", "internal_error");
|
||||
zeek::util::set_processing_status("TERMINATED", "internal_error");
|
||||
abort();
|
||||
}
|
||||
|
||||
|
@ -562,7 +562,8 @@ void Reporter::DoLog(const char* prefix, EventHandlerPtr event, FILE* out,
|
|||
vl.reserve(vl_size);
|
||||
|
||||
if ( time )
|
||||
vl.emplace_back(zeek::make_intrusive<zeek::TimeVal>(zeek::net::network_time ? zeek::net::network_time : current_time()));
|
||||
vl.emplace_back(zeek::make_intrusive<zeek::TimeVal>(
|
||||
zeek::net::network_time ? zeek::net::network_time : zeek::util::current_time()));
|
||||
|
||||
vl.emplace_back(zeek::make_intrusive<zeek::StringVal>(buffer));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue