aboutsummaryrefslogtreecommitdiff
path: root/src/lock.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-08-01 11:22:50 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2011-08-01 11:22:50 +0000
commita5088330ed9d2e672152b81720f3f35ad15a3bce (patch)
treedee3cdcf3719c3c80ace9ca7ac75a65282587fff /src/lock.c
parente11023671fa3e05c404d1277a6fe6855c79ce923 (diff)
downloadgdbm-a5088330ed9d2e672152b81720f3f35ad15a3bce.tar.gz
gdbm-a5088330ed9d2e672152b81720f3f35ad15a3bce.tar.bz2
Use GDBM_FILE instead of gdbm_file_info *.
Diffstat (limited to 'src/lock.c')
-rw-r--r--src/lock.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lock.c b/src/lock.c
index 9f40f4f..062ac0c 100644
--- a/src/lock.c
+++ b/src/lock.c
@@ -21,7 +21,6 @@
#include "autoconf.h"
#include "gdbmdefs.h"
-#include "gdbmerrno.h"
#include "extern.h"
#include <errno.h>
@@ -52,14 +51,14 @@
#if 0
int
-gdbm_locked (gdbm_file_info *dbf)
+gdbm_locked (GDBM_FILE dbf)
{
return (dbf->lock_type != LOCKING_NONE);
}
#endif
void
-_gdbm_unlock_file (gdbm_file_info *dbf)
+_gdbm_unlock_file (GDBM_FILE dbf)
{
#if HAVE_FCNTL_LOCK
struct flock fl;
@@ -94,7 +93,7 @@ _gdbm_unlock_file (gdbm_file_info *dbf)
/* Try each supported locking mechanism. */
int
-_gdbm_lock_file (gdbm_file_info *dbf)
+_gdbm_lock_file (GDBM_FILE dbf)
{
#if HAVE_FCNTL_LOCK
struct flock fl;

Return to:

Send suggestions and report system problems to the System administrator.