diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-01 11:22:50 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-01 11:22:50 +0000 |
commit | a5088330ed9d2e672152b81720f3f35ad15a3bce (patch) | |
tree | dee3cdcf3719c3c80ace9ca7ac75a65282587fff /src/bucket.c | |
parent | e11023671fa3e05c404d1277a6fe6855c79ce923 (diff) | |
download | gdbm-a5088330ed9d2e672152b81720f3f35ad15a3bce.tar.gz gdbm-a5088330ed9d2e672152b81720f3f35ad15a3bce.tar.bz2 |
Use GDBM_FILE instead of gdbm_file_info *.
Diffstat (limited to 'src/bucket.c')
-rw-r--r-- | src/bucket.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bucket.c b/src/bucket.c index 2374d07..65a5405 100644 --- a/src/bucket.c +++ b/src/bucket.c @@ -25,7 +25,7 @@ /* Initializing a new hash buckets sets all bucket entries to -1 hash value. */ void -_gdbm_new_bucket (gdbm_file_info *dbf, hash_bucket *bucket, int bits) +_gdbm_new_bucket (GDBM_FILE dbf, hash_bucket *bucket, int bits) { int index; @@ -50,7 +50,7 @@ _gdbm_new_bucket (gdbm_file_info *dbf, hash_bucket *bucket, int bits) and dbf->bucket points to the correct bucket. */ void -_gdbm_get_bucket (gdbm_file_info *dbf, int dir_index) +_gdbm_get_bucket (GDBM_FILE dbf, int dir_index) { off_t bucket_adr; /* The address of the correct hash bucket. */ int num_bytes; /* The number of bytes read. */ @@ -110,7 +110,7 @@ _gdbm_get_bucket (gdbm_file_info *dbf, int dir_index) are stored in the buckets. Splitting the current bucket may require doubling the size of the hash directory. */ void -_gdbm_split_bucket (gdbm_file_info *dbf, int next_insert) +_gdbm_split_bucket (GDBM_FILE dbf, int next_insert) { hash_bucket *bucket[2]; /* Pointers to the new buckets. */ @@ -301,7 +301,7 @@ _gdbm_split_bucket (gdbm_file_info *dbf, int next_insert) cache entry containing the bucket to be written. */ void -_gdbm_write_bucket (gdbm_file_info *dbf, cache_elem *ca_entry) +_gdbm_write_bucket (GDBM_FILE dbf, cache_elem *ca_entry) { int num_bytes; /* The return value for write. */ off_t file_pos; /* The return value for lseek. */ |