aboutsummaryrefslogtreecommitdiff
path: root/compat/dbmrdonly.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/dbmrdonly.c')
-rw-r--r--compat/dbmrdonly.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/compat/dbmrdonly.c b/compat/dbmrdonly.c
index 79dbfb1..62e165f 100644
--- a/compat/dbmrdonly.c
+++ b/compat/dbmrdonly.c
@@ -18,14 +18,13 @@
/* Include system configuration before all else. */
#include "autoconf.h"
-
+#include "ndbm.h"
#include "gdbmdefs.h"
-
/* not much of a routine, but should be a function for compatibility. */
int
-dbm_rdonly(GDBM_FILE dbf)
+dbm_rdonly (DBM *dbm)
{
- return (dbf->read_write == GDBM_READER);
+ return (dbm->file->read_write == GDBM_READER);
}

Return to:

Send suggestions and report system problems to the System administrator.