aboutsummaryrefslogtreecommitdiff
path: root/bbot/agent/agent.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-10-06 17:54:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-10-06 17:54:17 +0200
commit0f26f7c3c32cdea481cfa2982e5f8a3f26cb9bff (patch)
treecb3a2d4885367123751e246dc416d20e3f9ba18b /bbot/agent/agent.cxx
parent0ef1bdfb0f5ce8e0f2f6adb84608cd098660e558 (diff)
Get rid of using namespace std
Diffstat (limited to 'bbot/agent/agent.cxx')
-rw-r--r--bbot/agent/agent.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/bbot/agent/agent.cxx b/bbot/agent/agent.cxx
index b0f4d25..59ffa03 100644
--- a/bbot/agent/agent.cxx
+++ b/bbot/agent/agent.cxx
@@ -36,10 +36,12 @@
#include <bbot/agent/tftp.hxx>
#include <bbot/agent/machine.hxx>
-using namespace std;
using namespace butl;
using namespace bbot;
+using std::cout;
+using std::endl;
+
namespace bbot
{
agent_options ops;
@@ -829,7 +831,7 @@ try
if (gethostname (buf, sizeof (buf)) == -1)
fail << "unable to obtain hostname: "
- << system_error (errno, generic_category ()); // Sanitize.
+ << system_error (errno, std::generic_category ()); // Sanitize.
hname = buf;
}
@@ -841,7 +843,7 @@ try
//
if (signal (SIGPIPE, SIG_IGN) == SIG_ERR)
fail << "unable to ignore broken pipe (SIGPIPE) signal: "
- << system_error (errno, generic_category ()); // Sanitize.
+ << system_error (errno, std::generic_category ()); // Sanitize.
// Version.
//
@@ -897,7 +899,7 @@ try
if (signal (SIGHUP, &handle_signal) == SIG_ERR ||
signal (SIGTERM, &handle_signal) == SIG_ERR)
fail << "unable to set signal handler: "
- << system_error (errno, generic_category ()); // Sanitize.
+ << system_error (errno, std::generic_category ()); // Sanitize.
optional<string> fingerprint;
@@ -1239,7 +1241,7 @@ namespace bbot
{
if (rand_seed == 0)
rand_seed = static_cast<unsigned int> (
- chrono::system_clock::now ().time_since_epoch ().count ());
+ std::chrono::system_clock::now ().time_since_epoch ().count ());
return static_cast<size_t> (rand_r (&rand_seed));
}