1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-07 00:04:57 +03:00

Merge PR #607: resolve several trivial issues found by Coverity

This commit is contained in:
Davide Beatrici
2018-08-05 16:54:45 +02:00
committed by GitHub
6 changed files with 11 additions and 39 deletions

View File

@ -1111,27 +1111,20 @@ void UnixGetOsInfo(OS_INFO *info)
}
Zero(info, sizeof(OS_INFO));
info->OsType = OSTYPE_UNIX_UNKNOWN;
#ifdef UNIX_SOLARIS
info->OsType = OSTYPE_SOLARIS;
#endif // UNIX_SOLARIS
#ifdef UNIX_CYGWIN
#elif UNIX_CYGWIN
info->OsType = OSTYPE_CYGWIN;
#endif // UNIX_CYGWIN
#ifdef UNIX_MACOS
#elif UNIX_MACOS
info->OsType = OSTYPE_MACOS_X;
#endif // UNIX_MACOS
#ifdef UNIX_BSD
#elif UNIX_BSD
info->OsType = OSTYPE_BSD;
#endif // UNIX_BSD
#ifdef UNIX_LINUX
#elif UNIX_LINUX
info->OsType = OSTYPE_LINUX;
#endif // UNIX_LINUX
#else
info->OsType = OSTYPE_UNIX_UNKNOWN;
#endif
info->OsServicePack = 0;