aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/db/recno/rec_close.c
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2003-02-16 17:29:11 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2003-02-16 17:29:11 +0000
commite0554a531f17f56167f978eddf29a09cc6ae9f32 (patch)
tree3b5579370346d51f378192429db2130e5e82a6e4 /lib/libc/db/recno/rec_close.c
parent9d4156aed31c055ba32bc23b2a53d885002de085 (diff)
downloadsrc-e0554a531f17f56167f978eddf29a09cc6ae9f32.tar.gz
src-e0554a531f17f56167f978eddf29a09cc6ae9f32.zip
Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).
Only warnings that could be fixed without changing the generated object code and without restructuring the source code have been handled. Reviewed by: /sbin/md5
Notes
Notes: svn path=/head/; revision=111010
Diffstat (limited to 'lib/libc/db/recno/rec_close.c')
-rw-r--r--lib/libc/db/recno/rec_close.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/db/recno/rec_close.c b/lib/libc/db/recno/rec_close.c
index 2246c5b68966..326a943ea931 100644
--- a/lib/libc/db/recno/rec_close.c
+++ b/lib/libc/db/recno/rec_close.c
@@ -83,13 +83,14 @@ __rec_close(dbp)
if (F_ISSET(t, R_MEMMAPPED) && munmap(t->bt_smap, t->bt_msize))
status = RET_ERROR;
- if (!F_ISSET(t, R_INMEM))
+ if (!F_ISSET(t, R_INMEM)) {
if (F_ISSET(t, R_CLOSEFP)) {
if (fclose(t->bt_rfp))
status = RET_ERROR;
} else
if (_close(t->bt_rfd))
status = RET_ERROR;
+ }
if (__bt_close(dbp) == RET_ERROR)
status = RET_ERROR;