]> granicus.if.org Git - pdns/commitdiff
clean up namespace issue for rhel
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 7 Apr 2014 17:27:11 +0000 (19:27 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Mon, 7 Apr 2014 17:27:11 +0000 (19:27 +0200)
pdns/auth-carbon.cc

index 6f9c078b0bea8625365067e1c7cef687f28c81e2..a1811fbaaa66f2abd3e6898e89025acc35a8928f 100644 (file)
@@ -5,8 +5,7 @@
 #include "arguments.hh"
 #include "common_startup.hh"
 #include <boost/foreach.hpp>
-
-using namespace std;
+#include "namespaces.hh"
 
 void* carbonDumpThread(void*)
 try
@@ -59,13 +58,13 @@ try
       if(ret==0)
        L<<Logger::Warning<<"EOF writing carbon data to "<<remote.toStringWithPort();
     }
-    catch(exception& e) {
+    catch(std::exception& e) {
       L<<Logger::Warning<<"Problem sending carbon data: "<<e.what()<<endl;
     }
   }
   return 0;
 }
-catch(exception& e)
+catch(std::exception& e)
 {
   L<<Logger::Error<<"Carbon thread died: "<<e.what()<<endl;
   return 0;