]> git.decadent.org.uk Git - nfs-utils.git/commit
nfsdcltrack: break out a function to open the database handle
authorJeff Layton <jlayton@redhat.com>
Thu, 8 Nov 2012 19:56:51 +0000 (14:56 -0500)
committerSteve Dickson <steved@redhat.com>
Sun, 11 Nov 2012 23:01:23 +0000 (18:01 -0500)
commite583a12a5fc38dfbebaeffca6f082e2cf637c7c6
tree0ac853b2009b29831f98b2e8737b1067b0cedbe8
parent1a0020edd06dde37f3ad7168f141645f07a050c7
nfsdcltrack: break out a function to open the database handle

When we add a new usermodehelper upcall program to do the database
access, the existing "init" function will be overkill every time
we start up the program.

Break out the database handle establishment routine into a separate
function that we can call from each upcall command in the one-shot
program.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/nfsdcltrack/sqlite.c
utils/nfsdcltrack/sqlite.h