[Midnightbsd-cvs] src [11570] trunk/usr.bin/cmp/special.c: close files.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Jul 7 19:18:19 EDT 2018
Revision: 11570
http://svnweb.midnightbsd.org/src/?rev=11570
Author: laffer1
Date: 2018-07-07 19:18:18 -0400 (Sat, 07 Jul 2018)
Log Message:
-----------
close files.
Modified Paths:
--------------
trunk/usr.bin/cmp/Makefile
trunk/usr.bin/cmp/cmp.1
trunk/usr.bin/cmp/special.c
Property Changed:
----------------
trunk/usr.bin/cmp/cmp.1
Modified: trunk/usr.bin/cmp/Makefile
===================================================================
--- trunk/usr.bin/cmp/Makefile 2018-07-07 23:17:14 UTC (rev 11569)
+++ trunk/usr.bin/cmp/Makefile 2018-07-07 23:18:18 UTC (rev 11570)
@@ -1,8 +1,14 @@
+# $MidnightBSD$
# @(#)Makefile 8.1 (Berkeley) 6/6/93
-# $FreeBSD: src/usr.bin/cmp/Makefile,v 1.7 2005/08/23 13:13:13 brian Exp $
-# $MidnightBSD$
+# $FreeBSD: stable/10/usr.bin/cmp/Makefile 276490 2015-01-01 02:04:44Z ngie $
+.include <bsd.own.mk>
+
PROG= cmp
SRCS= cmp.c link.c misc.c regular.c special.c
+.if ${MK_TESTS} != "no"
+SUBDIR+= tests
+.endif
+
.include <bsd.prog.mk>
Modified: trunk/usr.bin/cmp/cmp.1
===================================================================
--- trunk/usr.bin/cmp/cmp.1 2018-07-07 23:17:14 UTC (rev 11569)
+++ trunk/usr.bin/cmp/cmp.1 2018-07-07 23:18:18 UTC (rev 11570)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1987, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -29,8 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)cmp.1 8.1 (Berkeley) 6/6/93
-.\" $FreeBSD: src/usr.bin/cmp/cmp.1,v 1.16 2010/12/11 08:32:16 joel Exp $
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/usr.bin/cmp/cmp.1 216370 2010-12-11 08:32:16Z joel $
.\"
.Dd December 19, 2006
.Dt CMP 1
Property changes on: trunk/usr.bin/cmp/cmp.1
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/usr.bin/cmp/special.c
===================================================================
--- trunk/usr.bin/cmp/special.c 2018-07-07 23:17:14 UTC (rev 11569)
+++ trunk/usr.bin/cmp/special.c 2018-07-07 23:18:18 UTC (rev 11570)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -34,8 +35,7 @@
#endif
#include <sys/cdefs.h>
-/* $FreeBSD: src/usr.bin/cmp/special.c,v 1.14 2011/06/21 20:44:06 delphij Exp $ */
-__MBSDID("$MidnightBSD$");
+__FBSDID("$FreeBSD: stable/10/usr.bin/cmp/special.c 314425 2017-02-28 22:18:05Z asomers $");
#include <sys/types.h>
@@ -100,6 +100,8 @@
} else
if (feof(fp2))
eofmsg(file2);
+ fclose(fp2);
+ fclose(fp1);
if (dfound)
exit(DIFF_EXIT);
}
More information about the Midnightbsd-cvs
mailing list