aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tdbio.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/tdbio.c')
-rw-r--r--g10/tdbio.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/g10/tdbio.c b/g10/tdbio.c
index 6aaa18012..3ba238c2f 100644
--- a/g10/tdbio.c
+++ b/g10/tdbio.c
@@ -514,7 +514,8 @@ open_db()
TRUSTREC rec;
assert( db_fd == -1 );
- lockhandle = create_dotlock( db_name );
+ if( !lockhandle )
+ lockhandle = create_dotlock( db_name );
if( !lockhandle )
log_fatal( _("%s: can't create lock\n"), db_name );
#ifdef HAVE_DOSISH_SYSTEM
@@ -611,7 +612,7 @@ tdbio_db_matches_options()
* Return the record number of the keyhash tbl or create a new one.
*/
static ulong
-get_keyhashrec()
+get_keyhashrec(void)
{
static ulong keyhashtbl; /* record number of the key hashtable */
@@ -636,7 +637,7 @@ get_keyhashrec()
* or create a new one.
*/
static ulong
-get_sdirhashrec()
+get_sdirhashrec(void)
{
static ulong sdirhashtbl; /* record number of the hashtable */