--- gvpe/src/device-cygwin.C 2003/10/15 06:06:41 1.6 +++ gvpe/src/device-cygwin.C 2004/01/29 18:55:10 1.8 @@ -1,6 +1,6 @@ /* device-cygwin.C -- Stub for Cygwin environment - Copyright (C) 2003 Marc Lehmann + Copyright (C) 2003-2004 Marc Lehmann Copyright (C) 2002-2003 Ivo Timmermans , 2002-2003 Guus Sliepen @@ -30,13 +30,14 @@ #include "config.h" -#include +#include +#include +#include #include #include #include #include #include -#include #include "conf.h" #include "util.h" @@ -102,7 +103,7 @@ else { slog (L_ERR, "WIN32 TAP: ReadFile returned error: %s", wstrerror (GetLastError ())); - exit (1); + exit (EXIT_FAILURE); } } @@ -142,7 +143,7 @@ { slog (L_ERR, _("WIN32 TAP: unable to read registry: %s"), wstrerror (GetLastError ())); - exit (1); + exit (EXIT_FAILURE); } for (i = 0;; i++) @@ -193,7 +194,7 @@ if (!found) { slog (L_ERR, _("WIN32 TAP: no windows tap device found!")); - exit (1); + exit (EXIT_FAILURE); } /* Try to open the corresponding tap device */ @@ -211,7 +212,7 @@ { slog (L_ERR, _("WIN32 TAP: %s is not a usable windows tap device %s: %s"), adaptername, tapname, wstrerror (GetLastError ())); - exit (1); + exit (EXIT_FAILURE); } strcpy (ifrname, (char *)tapname); @@ -225,7 +226,7 @@ slog (L_ERR, _("WIN32 TAP: could not get MAC address from windows tap device %s: %s"), adaptername, wstrerror (GetLastError ())); - exit (1); + exit (EXIT_FAILURE); } pipe (iopipe);