aboutsummaryrefslogtreecommitdiff
path: root/compat/dbmdirfno.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/dbmdirfno.c')
-rw-r--r--compat/dbmdirfno.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/compat/dbmdirfno.c b/compat/dbmdirfno.c
index 20f2170..8e7f957 100644
--- a/compat/dbmdirfno.c
+++ b/compat/dbmdirfno.c
@@ -19,15 +19,14 @@
/* Include system configuration before all else. */
#include "autoconf.h"
-
+#include "ndbm.h"
#include "gdbmdefs.h"
-
/* Return the file number of the DBF file. NDBM original wanted the .dir
file number. Since we have only one file number, we return it. */
int
-dbm_dirfno (GDBM_FILE dbf)
+dbm_dirfno (DBM *dbm)
{
- return (dbf->desc);
+ return (dbm->file->desc);
}

Return to:

Send suggestions and report system problems to the System administrator.