mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +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
|
@ -7,15 +7,15 @@
|
|||
#include <errno.h>
|
||||
#include <cstdio>
|
||||
|
||||
using namespace zeek::detail;
|
||||
namespace zeek::detail {
|
||||
|
||||
static void pipe_fail(int eno)
|
||||
{
|
||||
char tmp[256];
|
||||
zeek::util::zeek_strerror_r(eno, tmp, sizeof(tmp));
|
||||
|
||||
if ( zeek::reporter )
|
||||
zeek::reporter->FatalError("Pipe failure: %s", tmp);
|
||||
if ( reporter )
|
||||
reporter->FatalError("Pipe failure: %s", tmp);
|
||||
else
|
||||
fprintf(stderr, "Pipe failure: %s", tmp);
|
||||
}
|
||||
|
@ -156,3 +156,5 @@ PipePair::PipePair(int flags, int status_flags, int* fds)
|
|||
Pipe(flags, flags, status_flags, status_flags, fds ? fds + 2 : nullptr)}
|
||||
{
|
||||
}
|
||||
|
||||
} // namespace zeek::detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue