diff options
author | Christian Pointner <equinox@anytun.org> | 2009-02-22 07:51:26 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-02-22 07:51:26 +0000 |
commit | 5850046cf4bf3146c7da097f9ff3dec01459b640 (patch) | |
tree | 112fc3503c379be693b7b4cf88adba102312e924 /src/bsd | |
parent | replaced regular throws with AnytunError::thowErr (diff) |
moved LogErrno to AnytunErrno
Diffstat (limited to 'src/bsd')
-rw-r--r-- | src/bsd/tunDevice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bsd/tunDevice.cpp b/src/bsd/tunDevice.cpp index eee78ca..5d2b152 100644 --- a/src/bsd/tunDevice.cpp +++ b/src/bsd/tunDevice.cpp @@ -47,7 +47,7 @@ #include "tunDevice.h" #include "threadUtils.hpp" #include "log.h" -#include "anytunError.hpp" +#include "anytunError.h" #define DEVICE_FILE_MAX 255 @@ -95,7 +95,7 @@ TunDevice::TunDevice(std::string dev_name, std::string dev_type, std::string ifc if(dynamic) AnytunError::throwErr() << "can't open device file dynamically: no unused node left"; else - AnytunError::throwErr() << "can't open device file (" << device_file << "): " << LogErrno(errno); + AnytunError::throwErr() << "can't open device file (" << device_file << "): " << AnytunErrno(errno); } if(dynamic) { @@ -254,7 +254,7 @@ void TunDevice::do_ifconfig() int result = system(command.str().c_str()); if(result == -1) - cLog.msg(Log::PRIO_ERR) << "Execution of ifconfig failed" << LogErrno(errno); + cLog.msg(Log::PRIO_ERR) << "Execution of ifconfig failed" << AnytunErrno(errno); else { if(WIFEXITED(result)) cLog.msg(Log::PRIO_NOTICE) << "ifconfig returned " << WEXITSTATUS(result); |