Fix a few unrelated compile warnings.

This commit is contained in:
Nicholas Hastings 2016-07-22 14:04:02 -04:00
parent 18bdaf4732
commit 878f7531fb
2 changed files with 4 additions and 4 deletions

View File

@ -189,7 +189,7 @@ void BaseProvider::Notify_DLLInit_Pre(CreateInterfaceFn engineFactory,
char searchPath[260]; char searchPath[260];
baseFs->GetSearchPath("GAME", (GetSearchPathTypes_t)0, searchPath, sizeof(searchPath)); baseFs->GetSearchPath("GAME", (GetSearchPathTypes_t)0, searchPath, sizeof(searchPath));
for (int i = 0; i < sizeof(searchPath); ++i) for (size_t i = 0; i < sizeof(searchPath); ++i)
{ {
if (searchPath[i] == ';') if (searchPath[i] == ';')
{ {
@ -206,7 +206,7 @@ void BaseProvider::Notify_DLLInit_Pre(CreateInterfaceFn engineFactory,
baseFs->RemoveSearchPaths("DEFAULT_WRITE_PATH"); baseFs->RemoveSearchPaths("DEFAULT_WRITE_PATH");
baseFs->GetSearchPath("GAME", (GetSearchPathTypes_t)0, searchPath, sizeof(searchPath)); baseFs->GetSearchPath("GAME", (GetSearchPathTypes_t)0, searchPath, sizeof(searchPath));
for (int i = 0; i < sizeof(searchPath); ++i) for (size_t i = 0; i < sizeof(searchPath); ++i)
{ {
if (searchPath[i] == ';') if (searchPath[i] == ';')
{ {

View File

@ -165,8 +165,8 @@ mm_DetectGameInformation()
lptr = cur_path; lptr = cur_path;
} }
char *pRelPath = is_source2 ? "../../" : ""; const char *pRelPath = is_source2 ? "../../" : "";
char *pOSDir = is_source2 ? PLATFORM_NAME "/" : ""; const char *pOSDir = is_source2 ? PLATFORM_NAME "/" : "";
if (stricmp(key, "GameBin") == 0) if (stricmp(key, "GameBin") == 0)
mm_PathFormat(temp_path, sizeof(temp_path), "%s/%s%s/%s" SERVER_NAME, lptr, pRelPath, ptr, pOSDir); mm_PathFormat(temp_path, sizeof(temp_path), "%s/%s%s/%s" SERVER_NAME, lptr, pRelPath, ptr, pOSDir);
else if (!ptr[0]) else if (!ptr[0])