Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/error Remove unnecessary fclose(3) call
details: https://anonhg.NetBSD.org/src/rev/28924586de8d
branches: trunk
changeset: 339771:28924586de8d
user: shm <shm%NetBSD.org@localhost>
date: Sun Aug 09 09:49:25 2015 +0000
description:
Remove unnecessary fclose(3) call
diffstat:
usr.bin/error/filter.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 005773943679 -r 28924586de8d usr.bin/error/filter.c
--- a/usr.bin/error/filter.c Sun Aug 09 09:39:21 2015 +0000
+++ b/usr.bin/error/filter.c Sun Aug 09 09:49:25 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: filter.c,v 1.15 2009/08/13 05:53:58 dholland Exp $ */
+/* $NetBSD: filter.c,v 1.16 2015/08/09 09:49:25 shm Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)filter.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: filter.c,v 1.15 2009/08/13 05:53:58 dholland Exp $");
+__RCSID("$NetBSD: filter.c,v 1.16 2015/08/09 09:49:25 shm Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -108,7 +108,6 @@
fgets(inbuffer, sizeof(inbuffer)-1, fyle) != NULL; nignored++)
continue;
names_ignored = Calloc(nignored+1, sizeof (char *));
- fclose(fyle);
if (freopen(filename, "r", fyle) == NULL) {
#ifdef FULLDEBUG
fprintf(stderr, "%s: Failure to open \"%s\" for second read.\n",
Home |
Main Index |
Thread Index |
Old Index