From 00268bc1606aca95385181da6d1148cd31e24dc7 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Sat, 31 May 2014 10:19:46 +0200 Subject: [PATCH] Fix two unused variables for windows build --- src/tun.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tun.c b/src/tun.c index 53f52dc..5a9017d 100644 --- a/src/tun.c +++ b/src/tun.c @@ -440,15 +440,18 @@ tun_setip(const char *ip, const char *other_ip, int netbits) int i; #ifndef LINUX int r; - struct in_addr netip; #endif #ifdef WINDOWS32 DWORD status; DWORD ipdata[3]; struct in_addr addr; DWORD len; -#endif +#else const char *display_ip; +#ifndef LINUX + struct in_addr netip; +#endif +#endif netmask = 0; for (i = 0; i < netbits; i++) {