diff options
author | drh <drh@noemail.net> | 2016-08-01 14:35:48 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-08-01 14:35:48 +0000 |
commit | 32c83c8b9e4fc3a5af99856ae6db15694dbe0414 (patch) | |
tree | 775fc95c2634e592b842e5dc0324375f1019cc03 /src/test_func.c | |
parent | 19e76b2a7cf4b1b42f2d90ef27ea852603206bb2 (diff) | |
download | sqlite-32c83c8b9e4fc3a5af99856ae6db15694dbe0414.tar.gz sqlite-32c83c8b9e4fc3a5af99856ae6db15694dbe0414.zip |
Avoid making unnecessary changes to the signatures of the
sqlite3_auto_extension() and sqlite3_cancel_auto_extension() interfaces.
FossilOrigin-Name: b6ea2f21f602031ef4dbd47462ac11b0bb0d5de6
Diffstat (limited to 'src/test_func.c')
-rw-r--r-- | src/test_func.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test_func.c b/src/test_func.c index 6bfa86246..26f0d369e 100644 --- a/src/test_func.c +++ b/src/test_func.c @@ -25,7 +25,6 @@ #include "sqliteInt.h" #include "vdbeInt.h" - /* ** Allocate nByte bytes of space using sqlite3_malloc(). If the ** allocation fails, call sqlite3_result_error_nomem() to notify @@ -704,9 +703,9 @@ static int SQLITE_TCLAPI autoinstall_test_funcs( Tcl_Obj *CONST objv[] ){ extern int Md5_Register(sqlite3 *, char **, const sqlite3_api_routines *); - int rc = sqlite3_auto_extension(registerTestFunctions); + int rc = sqlite3_auto_extension((void(*)(void))registerTestFunctions); if( rc==SQLITE_OK ){ - rc = sqlite3_auto_extension(Md5_Register); + rc = sqlite3_auto_extension((void(*)(void))Md5_Register); } Tcl_SetObjResult(interp, Tcl_NewIntObj(rc)); return TCL_OK; @@ -791,6 +790,7 @@ abuse_err: return TCL_ERROR; } + /* ** Register commands with the TCL interpreter. */ @@ -809,7 +809,7 @@ int Sqlitetest_func_Init(Tcl_Interp *interp){ Tcl_CreateObjCommand(interp, aObjCmd[i].zName, aObjCmd[i].xProc, 0, 0); } sqlite3_initialize(); - sqlite3_auto_extension(registerTestFunctions); - sqlite3_auto_extension(Md5_Register); + sqlite3_auto_extension((void(*)(void))registerTestFunctions); + sqlite3_auto_extension((void(*)(void))Md5_Register); return TCL_OK; } |