diff options
author | Werner Koch <[email protected]> | 1999-02-16 13:16:33 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1999-02-16 13:16:33 +0000 |
commit | e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed (patch) | |
tree | 31dd54ac26b4c3fc30cc93d66161e72bf4cf7927 /g10/tdbio.c | |
parent | See ChangeLog: Sat Feb 13 14:13:04 CET 1999 Werner Koch (diff) | |
download | gnupg-e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed.tar.gz gnupg-e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed.zip |
See ChangeLog: Tue Feb 16 14:10:02 CET 1999 Werner Koch
Diffstat (limited to '')
-rw-r--r-- | g10/tdbio.c | 7 |
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 */ |