From: Arne Fitzenreiter Date: Fri, 25 Jun 2010 05:36:39 +0000 (+0200) Subject: ipsecctrl: fix compile error. X-Git-Tag: v2.9-beta1~185 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=16295ef4a0bd053a2e2b34e5d14478131ac1fe3c ipsecctrl: fix compile error. --- diff --git a/src/misc-progs/ipsecctrl.c b/src/misc-progs/ipsecctrl.c index 1dd05eaa73..2e8ca53bfe 100644 --- a/src/misc-progs/ipsecctrl.c +++ b/src/misc-progs/ipsecctrl.c @@ -142,6 +142,8 @@ int decode_line (char *s, */ void turn_connection_on (char *name, char *type) { char command[STRING_SIZE]; + FILE *file = NULL; + if (file = fopen("/var/run/vpn-watch.pid", "r")) { safe_system("kill -9 $(cat /var/run/vpn-watch.pid)"); safe_system("unlink /var/run/vpn-watch.pid");