summaryrefslogtreecommitdiffabout
path: root/src/gdbmstore.c
authorSergey Poznyakoff <gray@gnu.org>2018-05-30 09:32:31 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2018-05-30 09:32:31 (GMT)
commita14a6881538229cd938282bd56c7f0d12a089be6 (patch) (side-by-side diff)
tree89cfa47078460e7505c1a80ce71488eef29dfc63 /src/gdbmstore.c
parent07caec236e3af48973874f2c0e19bafec4d13f78 (diff)
downloadgdbm-a14a6881538229cd938282bd56c7f0d12a089be6.tar.gz
gdbm-a14a6881538229cd938282bd56c7f0d12a089be6.tar.bz2
Drop debugging hooks
The hooks were introduced as a temporary tool in de7834e9. They did their job and are not necessary any more.
Diffstat (limited to 'src/gdbmstore.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/gdbmstore.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gdbmstore.c b/src/gdbmstore.c
index 2ed1616..6b498b2 100644
--- a/src/gdbmstore.c
+++ b/src/gdbmstore.c
@@ -160,8 +160,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 = GDBM_DEBUG_OVERRIDE ("gdbm_store:seek-failure",
- __lseek (dbf, file_adr, SEEK_SET));
+ file_pos = __lseek (dbf, file_adr, SEEK_SET);
if (file_pos != file_adr)
{
GDBM_DEBUG (GDBM_DEBUG_STORE|GDBM_DEBUG_ERR,
@@ -171,8 +170,7 @@ gdbm_store (GDBM_FILE dbf, datum key, datum content, int flags)
return -1;
}
- rc = GDBM_DEBUG_OVERRIDE ("gdbm_store:write-1-failure",
- _gdbm_full_write (dbf, key.dptr, key.dsize));
+ rc = _gdbm_full_write (dbf, key.dptr, key.dsize);
if (rc)
{
GDBM_DEBUG (GDBM_DEBUG_STORE|GDBM_DEBUG_ERR,
@@ -182,9 +180,7 @@ gdbm_store (GDBM_FILE dbf, datum key, datum content, int flags)
return -1;
}
- rc = GDBM_DEBUG_OVERRIDE ("gdbm_store:write-2-failure",
- _gdbm_full_write (dbf,
- content.dptr, content.dsize));
+ rc = _gdbm_full_write (dbf, content.dptr, content.dsize);
if (rc)
{
GDBM_DEBUG (GDBM_DEBUG_STORE|GDBM_DEBUG_ERR,

Return to:

Send suggestions and report system problems to the System administrator.