aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmstore.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-11-11 10:59:11 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2011-11-11 10:59:11 +0000
commit894b78d5bcb7b609a3b52ce804306a63c4761282 (patch)
tree32e1233ca1a568923814afcb9830e9488a9a4d95 /src/gdbmstore.c
parent99d79193981246f988f10cde380f339f1aca7a70 (diff)
downloadgdbm-894b78d5bcb7b609a3b52ce804306a63c4761282.tar.gz
gdbm-894b78d5bcb7b609a3b52ce804306a63c4761282.tar.bz2
Use SEEK_SET instead of L_SET.
Diffstat (limited to 'src/gdbmstore.c')
-rw-r--r--src/gdbmstore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gdbmstore.c b/src/gdbmstore.c
index 367cc4f..aedf375 100644
--- a/src/gdbmstore.c
+++ b/src/gdbmstore.c
@@ -133,13 +133,13 @@ gdbm_store (GDBM_FILE dbf, datum key, datum content, int flags)
/* Update current bucket data pointer and sizes. */
dbf->bucket->h_table[elem_loc].data_pointer = file_adr;
dbf->bucket->h_table[elem_loc].key_size = key.dsize;
dbf->bucket->h_table[elem_loc].data_size = content.dsize;
/* Write the data to the file. */
- file_pos = __lseek (dbf, file_adr, L_SET);
+ file_pos = __lseek (dbf, file_adr, SEEK_SET);
if (file_pos != file_adr) _gdbm_fatal (dbf, _("lseek error"));
rc = _gdbm_full_write (dbf, key.dptr, key.dsize);
if (rc)
_gdbm_fatal (dbf, gdbm_strerror (rc));
rc = _gdbm_full_write (dbf, content.dptr, content.dsize);
if (rc)

Return to:

Send suggestions and report system problems to the System administrator.