summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-12-31 18:06:42 +0000
committerChristian Pointner <equinox@anytun.org>2008-12-31 18:06:42 +0000
commitd7f0688d7a76da42c3f23f2b94c6fa089d7c6684 (patch)
treeb2932f4a044e942db716fa1532e5d492c672b813
parentfixed useless malloc for dev_t (diff)
fixed build for OpenBSD
-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 6bec02a..b609a3c 100644
--- a/src/bsd/tun.c
+++ b/src/bsd/tun.c
@@ -105,7 +105,7 @@ int tun_init(tun_device_t* dev, const char* dev_name, const char* dev_type, cons
dev->fd_ = open(device_file_tmp, O_RDWR);
free(device_file_tmp);
if(dev->fd_ >= 0)
- break -1;
+ break;
}
}
else