mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Base: Clean up explicit uses of namespaces in places where they're not necessary.
This commit covers all of the common and base classes.
This commit is contained in:
parent
9f802b2a4d
commit
fe0c22c789
240 changed files with 6823 additions and 6787 deletions
10
src/Flare.cc
10
src/Flare.cc
|
@ -6,7 +6,7 @@
|
|||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
||||
using namespace zeek::detail;
|
||||
namespace zeek::detail {
|
||||
|
||||
Flare::Flare()
|
||||
: pipe(FD_CLOEXEC, FD_CLOEXEC, O_NONBLOCK, O_NONBLOCK)
|
||||
|
@ -19,10 +19,10 @@ Flare::Flare()
|
|||
abort();
|
||||
|
||||
char buf[256];
|
||||
zeek::util::zeek_strerror_r(errno, buf, sizeof(buf));
|
||||
util::zeek_strerror_r(errno, buf, sizeof(buf));
|
||||
|
||||
if ( zeek::reporter )
|
||||
zeek::reporter->FatalErrorWithCore("unexpected pipe %s failure: %s", which, buf);
|
||||
if ( reporter )
|
||||
reporter->FatalErrorWithCore("unexpected pipe %s failure: %s", which, buf);
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "unexpected pipe %s failure: %s", which, buf);
|
||||
|
@ -88,3 +88,5 @@ int Flare::Extinguish(bool signal_safe)
|
|||
|
||||
return rval;
|
||||
}
|
||||
|
||||
} // namespace zeek::detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue