aboutsummaryrefslogtreecommitdiff
path: root/src/update.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/update.c
parent99d79193981246f988f10cde380f339f1aca7a70 (diff)
downloadgdbm-894b78d5bcb7b609a3b52ce804306a63c4761282.tar.gz
gdbm-894b78d5bcb7b609a3b52ce804306a63c4761282.tar.bz2
Use SEEK_SET instead of L_SET.
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/update.c b/src/update.c
index 79865c8..faefe4f 100644
--- a/src/update.c
+++ b/src/update.c
@@ -32,7 +32,7 @@ write_header (GDBM_FILE dbf)
off_t file_pos; /* Return value for lseek. */
int rc;
- file_pos = __lseek (dbf, 0L, L_SET);
+ file_pos = __lseek (dbf, 0L, SEEK_SET);
if (file_pos != 0) _gdbm_fatal (dbf, _("lseek error"));
rc = _gdbm_full_write (dbf, dbf->header, dbf->header->block_size);
if (rc)
@@ -78,7 +78,7 @@ _gdbm_end_update (GDBM_FILE dbf)
/* Write the directory. */
if (dbf->directory_changed)
{
- file_pos = __lseek (dbf, dbf->header->dir, L_SET);
+ file_pos = __lseek (dbf, dbf->header->dir, SEEK_SET);
if (file_pos != dbf->header->dir) _gdbm_fatal (dbf, _("lseek error"));
rc = _gdbm_full_write (dbf, dbf->dir, dbf->header->dir_size);
if (rc)

Return to:

Send suggestions and report system problems to the System administrator.