Index: src/test_osinst.c ================================================================== --- src/test_osinst.c +++ src/test_osinst.c @@ -12,11 +12,11 @@ ** ** This file contains the implementation of an SQLite vfs wrapper that ** adds instrumentation to all vfs and file methods. C and Tcl interfaces ** are provided to control the instrumentation. ** -** $Id: test_osinst.c,v 1.18 2008/07/25 13:32:45 drh Exp $ +** $Id: test_osinst.c,v 1.19 2009/01/08 17:57:32 danielk1977 Exp $ */ #ifdef SQLITE_ENABLE_INSTVFS /* ** C interface: @@ -178,11 +178,11 @@ static int instDelete(sqlite3_vfs*, const char *zName, int syncDir); static int instAccess(sqlite3_vfs*, const char *zName, int flags, int *); static int instFullPathname(sqlite3_vfs*, const char *zName, int, char *zOut); static void *instDlOpen(sqlite3_vfs*, const char *zFilename); static void instDlError(sqlite3_vfs*, int nByte, char *zErrMsg); -static void *instDlSym(sqlite3_vfs*,void*, const char *zSymbol); +static void (*instDlSym(sqlite3_vfs *pVfs, void *p, const char*zSym))(void); static void instDlClose(sqlite3_vfs*, void*); static int instRandomness(sqlite3_vfs*, int nByte, char *zOut); static int instSleep(sqlite3_vfs*, int microseconds); static int instCurrentTime(sqlite3_vfs*, double*); @@ -455,12 +455,12 @@ } /* ** Return a pointer to the symbol zSymbol in the dynamic library pHandle. */ -static void *instDlSym(sqlite3_vfs *pVfs, void *pHandle, const char *zSymbol){ - return REALVFS(pVfs)->xDlSym(REALVFS(pVfs), pHandle, zSymbol); +static void (*instDlSym(sqlite3_vfs *pVfs, void *p, const char *zSym))(void){ + return REALVFS(pVfs)->xDlSym(REALVFS(pVfs), p, zSym); } /* ** Close the dynamic library handle pHandle. */