Index: third_party/sqlite/src/src/test4.c |
diff --git a/third_party/sqlite/src/src/test4.c b/third_party/sqlite/src/src/test4.c |
index 654b572dbf7e220fcc2ff30be4f596e696f4cc06..5c94370a3d4f6f723129689c1054c6722001cdc1 100644 |
--- a/third_party/sqlite/src/src/test4.c |
+++ b/third_party/sqlite/src/src/test4.c |
@@ -10,12 +10,10 @@ |
** |
************************************************************************* |
** Code for testing the the SQLite library in a multithreaded environment. |
-** |
-** $Id: test4.c,v 1.24 2008/10/12 00:27:54 shane Exp $ |
*/ |
#include "sqliteInt.h" |
#include "tcl.h" |
-#if defined(SQLITE_OS_UNIX) && OS_UNIX==1 && SQLITE_THREADSAFE |
+#if SQLITE_OS_UNIX && SQLITE_THREADSAFE |
#include <stdlib.h> |
#include <string.h> |
#include <pthread.h> |
@@ -144,7 +142,7 @@ static int tcl_thread_create( |
} |
threadset[i].busy = 1; |
sqlite3_free(threadset[i].zFilename); |
- threadset[i].zFilename = sqlite3DbStrDup(0, argv[2]); |
+ threadset[i].zFilename = sqlite3_mprintf("%s", argv[2]); |
threadset[i].opnum = 1; |
threadset[i].completed = 0; |
rc = pthread_create(&x, 0, thread_main, &threadset[i]); |
@@ -478,7 +476,7 @@ static int tcl_thread_compile( |
thread_wait(&threadset[i]); |
threadset[i].xOp = do_compile; |
sqlite3_free(threadset[i].zArg); |
- threadset[i].zArg = sqlite3DbStrDup(0, argv[2]); |
+ threadset[i].zArg = sqlite3_mprintf("%s", argv[2]); |
threadset[i].opnum++; |
return TCL_OK; |
} |