diff options
author | Christian Pointner <equinox@anytun.org> | 2008-12-31 18:06:42 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-12-31 18:06:42 +0000 |
commit | d7f0688d7a76da42c3f23f2b94c6fa089d7c6684 (patch) | |
tree | b2932f4a044e942db716fa1532e5d492c672b813 | |
parent | fixed useless malloc for dev_t (diff) |
fixed build for OpenBSD
-rw-r--r-- | src/bsd/tun.c | 2 |
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 |