summaryrefslogtreecommitdiffabout
path: root/src/gdbmstore.c
Unidiff
Diffstat (limited to 'src/gdbmstore.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/gdbmstore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gdbmstore.c b/src/gdbmstore.c
index 6b498b2..b8a1e66 100644
--- a/src/gdbmstore.c
+++ b/src/gdbmstore.c
@@ -157,13 +157,13 @@ gdbm_store (GDBM_FILE dbf, datum key, datum content, int flags)
157 /* Update current bucket data pointer and sizes. */ 157 /* Update current bucket data pointer and sizes. */
158 dbf->bucket->h_table[elem_loc].data_pointer = file_adr; 158 dbf->bucket->h_table[elem_loc].data_pointer = file_adr;
159 dbf->bucket->h_table[elem_loc].key_size = key.dsize; 159 dbf->bucket->h_table[elem_loc].key_size = key.dsize;
160 dbf->bucket->h_table[elem_loc].data_size = content.dsize; 160 dbf->bucket->h_table[elem_loc].data_size = content.dsize;
161 161
162 /* Write the data to the file. */ 162 /* Write the data to the file. */
163 file_pos = __lseek (dbf, file_adr, SEEK_SET); 163 file_pos = gdbm_file_seek (dbf, file_adr, SEEK_SET);
164 if (file_pos != file_adr) 164 if (file_pos != file_adr)
165 { 165 {
166 GDBM_DEBUG (GDBM_DEBUG_STORE|GDBM_DEBUG_ERR, 166 GDBM_DEBUG (GDBM_DEBUG_STORE|GDBM_DEBUG_ERR,
167 "%s: lseek: %s", dbf->name, strerror (errno)); 167 "%s: lseek: %s", dbf->name, strerror (errno));
168 GDBM_SET_ERRNO2 (dbf, GDBM_FILE_SEEK_ERROR, TRUE, GDBM_DEBUG_STORE); 168 GDBM_SET_ERRNO2 (dbf, GDBM_FILE_SEEK_ERROR, TRUE, GDBM_DEBUG_STORE);
169 _gdbm_fatal (dbf, _("lseek error")); 169 _gdbm_fatal (dbf, _("lseek error"));

Return to:

Send suggestions and report system problems to the System administrator.