summaryrefslogtreecommitdiff
path: root/src/bsd/tun.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-20 15:44:05 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-20 15:44:05 +0000
commit156e593dccd90abb2a743c43d1384bb0912d5bda (patch)
tree1065f736873e2a323768e09cf8020c7fa26d23cb /src/bsd/tun.c
parentfixed compat mode bug (diff)
tested with gcc pedantic -> cleanup
Diffstat (limited to 'src/bsd/tun.c')
-rw-r--r--src/bsd/tun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bsd/tun.c b/src/bsd/tun.c
index bc10d5b..d52cf67 100644
--- a/src/bsd/tun.c
+++ b/src/bsd/tun.c
@@ -58,7 +58,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;