summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/logmsg.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2007-01-25 22:49:40 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2007-01-25 22:49:40 +0000
commitbd5da775859dac29738a490ad7086ab80bd55a04 (patch)
tree2490d8ec6fffde2428266bccd3ce48fe80e8089d /usr.bin/cvs/logmsg.c
parentc051c244fdb54d8e21d2457207a497feabb092b1 (diff)
zap uneeded close() calls after fclose(); pointed out by and OK otto@.
Diffstat (limited to 'usr.bin/cvs/logmsg.c')
-rw-r--r--usr.bin/cvs/logmsg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/cvs/logmsg.c b/usr.bin/cvs/logmsg.c
index bc840647c1f..567f1afbcda 100644
--- a/usr.bin/cvs/logmsg.c
+++ b/usr.bin/cvs/logmsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: logmsg.c,v 1.36 2007/01/25 08:21:08 otto Exp $ */
+/* $OpenBSD: logmsg.c,v 1.37 2007/01/25 22:49:39 xsa Exp $ */
/*
* Copyright (c) 2007 Joris Vink <joris@openbsd.org>
*
@@ -76,7 +76,6 @@ cvs_logmsg_read(const char *path)
xfree(lbuf);
(void)fclose(fp);
- (void)close(fd);
cvs_buf_putc(bp, '\0');
return (cvs_buf_release(bp));
@@ -184,7 +183,6 @@ cvs_logmsg_create(struct cvs_flisthead *added, struct cvs_flisthead *removed,
}
(void)fclose(fp);
- (void)close(fd);
(void)unlink(fpath);
xfree(fpath);