aboutsummaryrefslogtreecommitdiff
path: root/compat/dbmpagfno.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/dbmpagfno.c')
-rw-r--r--compat/dbmpagfno.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/compat/dbmpagfno.c b/compat/dbmpagfno.c
index b2d00ee..6e07d39 100644
--- a/compat/dbmpagfno.c
+++ b/compat/dbmpagfno.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 .pag
file number. Since we have only one file number, we return it. */
int
-dbm_pagfno (GDBM_FILE dbf)
+dbm_pagfno (DBM *dbm)
{
- return (dbf->desc);
+ return dbm->file->desc;
}

Return to:

Send suggestions and report system problems to the System administrator.