aboutsummaryrefslogtreecommitdiff
path: root/src/bucket.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/bucket.c
parent99d79193981246f988f10cde380f339f1aca7a70 (diff)
downloadgdbm-894b78d5bcb7b609a3b52ce804306a63c4761282.tar.gz
gdbm-894b78d5bcb7b609a3b52ce804306a63c4761282.tar.bz2
Use SEEK_SET instead of L_SET.
Diffstat (limited to 'src/bucket.c')
-rw-r--r--src/bucket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bucket.c b/src/bucket.c
index c211f3c..0c87759 100644
--- a/src/bucket.c
+++ b/src/bucket.c
@@ -92,7 +92,7 @@ _gdbm_get_bucket (GDBM_FILE dbf, int dir_index)
dbf->cache_entry->ca_changed = FALSE;
/* Read the bucket. */
- file_pos = __lseek (dbf, bucket_adr, L_SET);
+ file_pos = __lseek (dbf, bucket_adr, SEEK_SET);
if (file_pos != bucket_adr)
_gdbm_fatal (dbf, _("lseek error"));
@@ -306,7 +306,7 @@ _gdbm_write_bucket (GDBM_FILE dbf, cache_elem *ca_entry)
int rc;
off_t file_pos; /* The return value for lseek. */
- file_pos = __lseek (dbf, ca_entry->ca_adr, L_SET);
+ file_pos = __lseek (dbf, ca_entry->ca_adr, SEEK_SET);
if (file_pos != ca_entry->ca_adr)
_gdbm_fatal (dbf, _("lseek error"));
rc = _gdbm_full_write (dbf, ca_entry->ca_bucket, dbf->header->bucket_size);

Return to:

Send suggestions and report system problems to the System administrator.