aboutsummaryrefslogtreecommitdiff
path: root/compat/close.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-08-05 11:29:26 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2011-08-05 11:29:26 +0000
commit39cc2512acbcf56ffbf87e3d26afc0450ca37de9 (patch)
tree69bde184c07add3dfd3ad7479bf72b5bdcb584d6 /compat/close.c
parentff788884bcaeeb59579ff88f51b90e57c1f8c3be (diff)
downloadgdbm-39cc2512acbcf56ffbf87e3d26afc0450ca37de9.tar.gz
gdbm-39cc2512acbcf56ffbf87e3d26afc0450ca37de9.tar.bz2
Rewrite using ndbm interface.
Diffstat (limited to 'compat/close.c')
-rw-r--r--compat/close.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/compat/close.c b/compat/close.c
index 1d1b13b..2b368f9 100644
--- a/compat/close.c
+++ b/compat/close.c
@@ -18,24 +18,18 @@
/* Include system configuration before all else. */
#include "autoconf.h"
-
-#include "gdbmdefs.h"
-#include "extern.h"
-
+#include "dbm-priv.h"
/* It's unclear whether dbmclose() is *always* a void function in old
C libraries. We use int, here. */
int
-dbmclose()
+dbmclose ()
{
if (_gdbm_file != NULL)
{
- gdbm_close (_gdbm_file);
+ dbm_close (_gdbm_file);
_gdbm_file = NULL;
- if (_gdbm_memory.dptr != NULL) free(_gdbm_memory.dptr);
- _gdbm_memory.dptr = NULL;
- _gdbm_memory.dsize = 0;
}
return (0);
}

Return to:

Send suggestions and report system problems to the System administrator.