From caf2c4070dd62351f224a01735f5489830643fbf Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Mon, 17 Nov 2014 13:58:48 -0500 Subject: nfsdcltrack: use sqlite3_close instead of sqlite3_close_v2 sqlite3_close_v2 wasn't added until v3.7.14 of libsqlite3 so this causes the build to fail vs. very old sqlite3 libs. Also, Chuck points out that the documentation says that sqlite3_close_v2 is intended for use with host languages that are garbage collected, and C isn't. In practice, we shouldn't ever see sqlite3_close return SQLITE_BUSY here anyway since the program is single-threaded, so sqlite3_close should be fine. Signed-off-by: Jeff Layton Signed-off-by: Steve Dickson --- utils/nfsdcltrack/sqlite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/nfsdcltrack/sqlite.c b/utils/nfsdcltrack/sqlite.c index fb45c4a..7cac89e 100644 --- a/utils/nfsdcltrack/sqlite.c +++ b/utils/nfsdcltrack/sqlite.c @@ -357,7 +357,7 @@ sqlite_prepare_dbh(const char *topdir) return ret; out_close: - sqlite3_close_v2(dbh); + sqlite3_close(dbh); dbh = NULL; return ret; } -- cgit