1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 11:19:10 +00:00

Use puts instead of printf.

This commit is contained in:
Darryl Pogue
2013-01-20 12:56:26 -08:00
parent 4dc4a0ec7b
commit b6d8492b3b
2 changed files with 8 additions and 8 deletions

View File

@ -49,7 +49,7 @@ int main(int argc, char* argv[])
{
if (argc != 2)
{
printf("plPageOptimizer: wrong number of arguments\n");
puts("plPageOptimizer: wrong number of arguments");
return 1;
}
@ -62,7 +62,7 @@ int main(int argc, char* argv[])
hsgResMgr::Init(resMgr);
#ifndef _DEBUG
} catch (...) {
printf(" ***crashed on init\n");
puts(" ***crashed on init");
return 2;
}
#endif
@ -76,7 +76,7 @@ int main(int argc, char* argv[])
}
#ifndef _DEBUG
catch (...) {
printf(" ***crashed on optimizing\n");
puts(" ***crashed on optimizing");
return 2;
}
#endif
@ -93,7 +93,7 @@ int main(int argc, char* argv[])
hsgResMgr::Shutdown();
#ifndef _DEBUG
} catch (...) {
printf(" ***crashed on shutdown\n");
puts(" ***crashed on shutdown");
return 2;
}
#endif

View File

@ -140,24 +140,24 @@ void plPageOptimizer::Optimize()
if (!loaded)
{
printf("no scene node.\n");
puts("no scene node.");
}
else if (fOptimized)
{
plFileUtils::RemoveFile(fTempPagePath);
printf("already optimized.\n");
puts("already optimized.");
}
else if (oldSize == newSize)
{
plFileUtils::RemoveFile(fPagePath, true);
plFileUtils::FileMove(fTempPagePath, fPagePath);
printf("complete\n");
puts("complete");
}
else
{
plFileUtils::RemoveFile(fTempPagePath);
printf("failed. File sizes different\n");
puts("failed. File sizes different");
}
}