mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
Move Reporter to zeek namespace
This commit is contained in:
parent
7cedd94ee7
commit
bfab224d7c
132 changed files with 1010 additions and 987 deletions
|
@ -17,13 +17,13 @@ using namespace std;
|
|||
|
||||
static void DbgAndWarn(const char* msg)
|
||||
{
|
||||
if ( reporter->Errors() )
|
||||
if ( zeek::reporter->Errors() )
|
||||
// We've likely already reported to real source of the problem
|
||||
// as an error, avoid adding an additional warning which may
|
||||
// be confusing.
|
||||
return;
|
||||
|
||||
reporter->Warning("%s", msg);
|
||||
zeek::reporter->Warning("%s", msg);
|
||||
DBG_LOG(DBG_ZEEKYGEN, "%s", msg);
|
||||
}
|
||||
|
||||
|
@ -88,8 +88,9 @@ Manager::Manager(const string& arg_config, const string& bro_command)
|
|||
// a PATH component that starts with a tilde (such as "~/bin"). A simple
|
||||
// workaround is to just run bro with a relative or absolute path.
|
||||
if ( path_to_bro.empty() || stat(path_to_bro.c_str(), &s) < 0 )
|
||||
reporter->InternalError("Zeekygen can't get mtime of zeek binary %s (try again by specifying the absolute or relative path to Zeek): %s",
|
||||
path_to_bro.c_str(), strerror(errno));
|
||||
zeek::reporter->InternalError(
|
||||
"Zeekygen can't get mtime of zeek binary %s (try again by specifying the absolute or relative path to Zeek): %s",
|
||||
path_to_bro.c_str(), strerror(errno));
|
||||
|
||||
// Internal error will abort above in the case that stat isn't initialized
|
||||
// NOLINTNEXTLINE(clang-analyzer-core.uninitialized.Assign)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue