summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2014-11-17 13:58:48 -0500
committerSteve Dickson <steved@redhat.com>2014-11-17 13:58:48 -0500
commitcaf2c4070dd62351f224a01735f5489830643fbf (patch)
treeb9a03cc2420fcb26d405cb48c48ffbb84abae415
parente725def62c73b4aa269fefc4c0d96abb41927fcb (diff)
downloadnfs-utils-caf2c4070dd62351f224a01735f5489830643fbf.tar.gz
nfs-utils-caf2c4070dd62351f224a01735f5489830643fbf.tar.xz
nfs-utils-caf2c4070dd62351f224a01735f5489830643fbf.zip
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 <jlayton@primarydata.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/nfsdcltrack/sqlite.c2
1 files changed, 1 insertions, 1 deletions
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;
}