summaryrefslogtreecommitdiffabout
path: root/src/gdbmstore.c
authorSergey Poznyakoff <gray@gnu.org.ua>2011-11-11 10:59:11 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-11-11 10:59:11 (GMT)
commit894b78d5bcb7b609a3b52ce804306a63c4761282 (patch) (side-by-side diff)
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') (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 367cc4f..aedf375 100644
--- a/src/gdbmstore.c
+++ b/src/gdbmstore.c
@@ -136,7 +136,7 @@ gdbm_store (GDBM_FILE dbf, datum key, datum content, int flags)
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)

Return to:

Send suggestions and report system problems to the System administrator.