summaryrefslogtreecommitdiff
path: root/cppe/test/Common/TestCommon.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-06-09 18:48:04 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-06-09 18:48:04 +0000
commitbb3b9cacfd52e55c19f72c086d11d3afc38cdccb (patch)
treee33dc60c6bf407f3b098d1f48d0817de2017259e /cppe/test/Common/TestCommon.cpp
parentPort to WinCE (diff)
downloadice-bb3b9cacfd52e55c19f72c086d11d3afc38cdccb.tar.bz2
ice-bb3b9cacfd52e55c19f72c086d11d3afc38cdccb.tar.xz
ice-bb3b9cacfd52e55c19f72c086d11d3afc38cdccb.zip
Compile unnder regular windows
Diffstat (limited to 'cppe/test/Common/TestCommon.cpp')
-rwxr-xr-xcppe/test/Common/TestCommon.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cppe/test/Common/TestCommon.cpp b/cppe/test/Common/TestCommon.cpp
index c107296e83f..6a45fa917d2 100755
--- a/cppe/test/Common/TestCommon.cpp
+++ b/cppe/test/Common/TestCommon.cpp
@@ -181,15 +181,15 @@ tprintf(const char* fmt, ...)
va_list va;
va_start(va, fmt);
char buf[1024];
- vprintf(buf, sizeof(buf)-1, fmt, va);
+ _vsnprintf(buf, sizeof(buf)-1, fmt, va);
buf[sizeof(buf)-1] = '\0';
va_end(va);
}
int
-TestApplication::main(int ac, char*[] av)
+TestApplication::main(int ac, char* av[])
{
- run(ac, av);
+ return run(ac, av);
}
#endif