From 156e593dccd90abb2a743c43d1384bb0912d5bda Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 20 Feb 2009 15:44:05 +0000 Subject: tested with gcc pedantic -> cleanup --- src/linux/tun.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/linux/tun.c') diff --git a/src/linux/tun.c b/src/linux/tun.c index 385da8d..1faf49d 100644 --- a/src/linux/tun.c +++ b/src/linux/tun.c @@ -41,6 +41,7 @@ #include "tun_helper.h" #include +#include #include #include #include @@ -56,7 +57,7 @@ int tun_init(tun_device_t* dev, const char* dev_name, const char* dev_type, const char* ifcfg_addr, u_int16_t ifcfg_prefix){ if(!dev) - return; + return -1; tun_conf(dev, dev_name, dev_type, ifcfg_addr, ifcfg_prefix, 1400); dev->actual_name_ = NULL; -- cgit v1.2.3