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

View File

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