diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-05-24 08:28:51 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-05-24 08:29:47 +0300 |
commit | f82d0b213fd2cdce80dc891906fba8d589115664 (patch) | |
tree | 9aa091d9fbe7fea183391fc9e22fc0f2f54ae28f /src/falloc.c | |
parent | 0665bcf0c9cdf756f9d5edc6a638c56602c42065 (diff) | |
download | gdbm-f82d0b213fd2cdce80dc891906fba8d589115664.tar.gz gdbm-f82d0b213fd2cdce80dc891906fba8d589115664.tar.bz2 |
Fix the use of return code from _gdbm_full_(read|write) functions
Diffstat (limited to 'src/falloc.c')
-rw-r--r-- | src/falloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/falloc.c b/src/falloc.c index 33a238a..e87a5b7 100644 --- a/src/falloc.c +++ b/src/falloc.c @@ -202,7 +202,7 @@ pop_avail_block (GDBM_FILE dbf) _gdbm_full_read (dbf, new_blk, new_el.av_size)); if (rc) { - _gdbm_fatal (dbf, gdbm_strerror (rc)); + _gdbm_fatal (dbf, gdbm_db_strerror (dbf)); return -1; } @@ -330,7 +330,7 @@ push_avail_block (GDBM_FILE dbf) GDBM_DEBUG (GDBM_DEBUG_STORE|GDBM_DEBUG_ERR, "%s: error writing avail data: %s", dbf->name, gdbm_db_strerror (dbf)); - _gdbm_fatal (dbf, gdbm_strerror (rc)); + _gdbm_fatal (dbf, gdbm_db_strerror (dbf)); return -1; } |