aboutsummaryrefslogtreecommitdiff
path: root/src/falloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/falloc.c')
-rw-r--r--src/falloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/falloc.c b/src/falloc.c
index 6b2eca4..560ccf8 100644
--- a/src/falloc.c
+++ b/src/falloc.c
@@ -181,7 +181,7 @@ pop_avail_block (GDBM_FILE dbf)
if (new_blk == NULL) _gdbm_fatal(dbf, _("malloc failed"));
/* Read the block. */
- file_pos = __lseek (dbf, new_el.av_adr, L_SET);
+ file_pos = __lseek (dbf, new_el.av_adr, SEEK_SET);
if (file_pos != new_el.av_adr) _gdbm_fatal (dbf, _("lseek error"));
rc = _gdbm_full_read (dbf, new_blk, new_el.av_size);
if (rc)
@@ -278,7 +278,7 @@ push_avail_block (GDBM_FILE dbf)
_gdbm_free (dbf, new_loc.av_adr, new_loc.av_size);
/* Update the disk. */
- file_pos = __lseek (dbf, av_adr, L_SET);
+ file_pos = __lseek (dbf, av_adr, SEEK_SET);
if (file_pos != av_adr) _gdbm_fatal (dbf, _("lseek error"));
rc = _gdbm_full_write (dbf, temp, av_size);
if (rc)

Return to:

Send suggestions and report system problems to the System administrator.