diff options
author | Albert Astals Cid <aacid@kde.org> | 2011-08-31 19:17:13 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2011-08-31 19:17:13 +0200 |
commit | 53f94df2ce21793914ccc153ba6b2fe5cbeb8371 (patch) | |
tree | 38a40a8e4f989251a1f2713219fac0a07446d496 /test | |
parent | 95a52f06a98f49f7c8f2b92634b75af96b4eee1d (diff) |
Port to setErrorCallback
Diffstat (limited to 'test')
-rw-r--r-- | test/perf-test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/perf-test.cc b/test/perf-test.cc index 6dc8e341..45961d31 100644 --- a/test/perf-test.cc +++ b/test/perf-test.cc @@ -742,7 +742,7 @@ void OutputDebugString(const char *txt) #define _vsnprintf vsnprintf
#endif
-void my_error(int pos, const char *msg, va_list args) {
+void my_error(void *, ErrorCategory, int pos, char *msg) {
#if 0
char buf[4096], *p = buf;
@@ -1231,7 +1231,7 @@ static void RenderCmdLineArg(char *cmdLineArg) int main(int argc, char **argv)
{
- setErrorFunction(my_error);
+ setErrorCallback(my_error, NULL);
ParseCommandLine(argc, argv);
if (0 == StrList_Len(&gArgsListRoot))
PrintUsageAndExit(argc, argv);
|