summaryrefslogtreecommitdiffabout
path: root/src/update.c
Side-by-side diff
Diffstat (limited to 'src/update.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/update.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/update.c b/src/update.c
index 63c6c95..f4b8b78 100644
--- a/src/update.c
+++ b/src/update.c
@@ -30,8 +30,7 @@ write_header (GDBM_FILE dbf)
off_t file_pos; /* Return value for lseek. */
int rc;
- file_pos = GDBM_DEBUG_OVERRIDE ("write_header:lseek-failure",
- __lseek (dbf, 0L, SEEK_SET));
+ file_pos = __lseek (dbf, 0L, SEEK_SET);
if (file_pos != 0)
{
GDBM_SET_ERRNO2 (dbf, GDBM_FILE_SEEK_ERROR, TRUE, GDBM_DEBUG_STORE);
@@ -39,8 +38,7 @@ write_header (GDBM_FILE dbf)
return -1;
}
- rc = GDBM_DEBUG_OVERRIDE ("write_header:write-failure",
- _gdbm_full_write (dbf, dbf->header, dbf->header->block_size));
+ rc = _gdbm_full_write (dbf, dbf->header, dbf->header->block_size);
if (rc)
{
@@ -96,8 +94,7 @@ _gdbm_end_update (GDBM_FILE dbf)
/* Write the directory. */
if (dbf->directory_changed)
{
- file_pos = GDBM_DEBUG_OVERRIDE ("_gdbm_end_update:lseek-failure",
- __lseek (dbf, dbf->header->dir, SEEK_SET));
+ file_pos = __lseek (dbf, dbf->header->dir, SEEK_SET);
if (file_pos != dbf->header->dir)
{
GDBM_SET_ERRNO2 (dbf, GDBM_FILE_SEEK_ERROR, TRUE, GDBM_DEBUG_STORE);
@@ -105,8 +102,7 @@ _gdbm_end_update (GDBM_FILE dbf)
return -1;
}
- rc = GDBM_DEBUG_OVERRIDE ("_gdbm_end_update:write-dir-failure",
- _gdbm_full_write (dbf, dbf->dir, dbf->header->dir_size));
+ rc = _gdbm_full_write (dbf, dbf->dir, dbf->header->dir_size);
if (rc)
{
GDBM_DEBUG (GDBM_DEBUG_STORE|GDBM_DEBUG_ERR,

Return to:

Send suggestions and report system problems to the System administrator.