]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/misc-progs/ipsecctrl.c
ipsecctrl: fix compile error.
[ipfire-2.x.git] / src / misc-progs / ipsecctrl.c
index 1dd05eaa7316d3e02e4edf6a7619c88c7bf06687..2e8ca53bfe40e918a585af80200ee231a9f73f08 100644 (file)
@@ -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");