diff options
Diffstat (limited to 'openvpn/src/openvpn/platform.c')
| -rw-r--r-- | openvpn/src/openvpn/platform.c | 27 | 
1 files changed, 1 insertions, 26 deletions
| diff --git a/openvpn/src/openvpn/platform.c b/openvpn/src/openvpn/platform.c index c79f6807..e79de7a7 100644 --- a/openvpn/src/openvpn/platform.c +++ b/openvpn/src/openvpn/platform.c @@ -205,7 +205,7 @@ platform_chdir (const char* dir)  }  /* - * convert system() return into a success/failure value + * convert execve() return into a success/failure value   */  bool  platform_system_ok (int stat) @@ -217,19 +217,6 @@ platform_system_ok (int stat)  #endif  } -/* - * did system() call execute the given command? - */ -bool -platform_system_executed (int stat) -{ -#ifdef WIN32 -  return stat != -1; -#else -  return stat != -1 && WEXITSTATUS (stat) != 127; -#endif -} -  int  platform_access (const char *path, int mode)  { @@ -288,18 +275,6 @@ platform_unlink (const char *filename)  #endif  } -int platform_system(const char *command) { -  int ret; -#ifdef WIN32 -  struct gc_arena gc = gc_new (); -  ret = _wsystem (wide_string (command, &gc)); -  gc_free (&gc); -#else -  ret = system (command); -#endif -  return ret; -} -  int platform_putenv(char *string)  {    int status; | 
