summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/logmsg.c
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2007-01-25 22:49:39 +0000
committerxsa <xsa@openbsd.org>2007-01-25 22:49:39 +0000
commite7423a9cb11badf905f7becb0c047b5189b319fe (patch)
treed232ef2af02bf4fff7c6b5877b1058a9f04fdd89 /usr.bin/cvs/logmsg.c
parentBe a bit more verbose during attach even without ACPI_DEBUG for now. (diff)
downloadwireguard-openbsd-e7423a9cb11badf905f7becb0c047b5189b319fe.tar.xz
wireguard-openbsd-e7423a9cb11badf905f7becb0c047b5189b319fe.zip
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);