aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmseq.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/gdbmseq.c
parente11023671fa3e05c404d1277a6fe6855c79ce923 (diff)
downloadgdbm-a5088330ed9d2e672152b81720f3f35ad15a3bce.tar.gz
gdbm-a5088330ed9d2e672152b81720f3f35ad15a3bce.tar.bz2
Use GDBM_FILE instead of gdbm_file_info *.
Diffstat (limited to 'src/gdbmseq.c')
-rw-r--r--src/gdbmseq.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gdbmseq.c b/src/gdbmseq.c
index 2fe7b3c..59c05cd 100644
--- a/src/gdbmseq.c
+++ b/src/gdbmseq.c
@@ -21,10 +21,9 @@
#include "autoconf.h"
#include "gdbmdefs.h"
-#include "gdbmerrno.h"
/* Special extern for this file. */
-extern char *_gdbm_read_entry (gdbm_file_info *, int);
+extern char *_gdbm_read_entry (GDBM_FILE , int);
/* Find and read the next entry in the hash structure for DBF starting
@@ -32,7 +31,7 @@ extern char *_gdbm_read_entry (gdbm_file_info *, int);
put the data that is found. */
static void
-get_next_key (gdbm_file_info *dbf, int elem_loc, datum *return_val)
+get_next_key (GDBM_FILE dbf, int elem_loc, datum *return_val)
{
int found; /* Have we found the next key. */
char *find_data; /* Data pointer returned by find_key. */
@@ -80,7 +79,7 @@ get_next_key (gdbm_file_info *dbf, int elem_loc, datum *return_val)
hash order, not in any sorted order. */
datum
-gdbm_firstkey (gdbm_file_info *dbf)
+gdbm_firstkey (GDBM_FILE dbf)
{
datum return_val; /* To return the first key. */
@@ -103,7 +102,7 @@ gdbm_firstkey (gdbm_file_info *dbf)
/* Continue visiting all keys. The next key following KEY is returned. */
datum
-gdbm_nextkey (gdbm_file_info *dbf, datum key)
+gdbm_nextkey (GDBM_FILE dbf, datum key)
{
datum return_val; /* The return value. */
int elem_loc; /* The location in the bucket. */

Return to:

Send suggestions and report system problems to the System administrator.