From 9985e088f7a2b3644948786895d29d2d8f56c736 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 27 Dec 2008 00:06:09 +0000 Subject: fixed some compiler warnings for ubuntu intrepid --- src/linux/tunDevice.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/linux/tunDevice.cpp') diff --git a/src/linux/tunDevice.cpp b/src/linux/tunDevice.cpp index c743229..0c51047 100644 --- a/src/linux/tunDevice.cpp +++ b/src/linux/tunDevice.cpp @@ -44,7 +44,7 @@ #include "tunDevice.h" #include "threadUtils.hpp" - +#include "log.h" TunDevice::TunDevice(std::string dev_name, std::string dev_type, std::string ifcfg_lp, std::string ifcfg_rnmp) : conf_(dev_name, dev_type, ifcfg_lp, ifcfg_rnmp, 1400) { @@ -172,5 +172,9 @@ void TunDevice::do_ifconfig() command << conf_.remote_netmask_.toString() << " mtu " << conf_.mtu_; - system(command.str().c_str()); + int result = system(command.str().c_str()); + if(result == -1) + cLog.msg(Log::PRIO_ERR) << "Execution of ifconfig failed"; + else + cLog.msg(Log::PRIO_NOTICE) << "ifconfig returned " << WEXITSTATUS(result); } -- cgit v1.2.3