Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/gen Remove superfluous close(2) pointed out b...
details: https://anonhg.NetBSD.org/src/rev/6693df0d6a36
branches: trunk
changeset: 764854:6693df0d6a36
user: jruoho <jruoho%NetBSD.org@localhost>
date: Mon May 09 10:50:02 2011 +0000
description:
Remove superfluous close(2) pointed out by martin@.
diffstat:
tests/lib/libc/gen/t_closefrom.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r 88828e163bd2 -r 6693df0d6a36 tests/lib/libc/gen/t_closefrom.c
--- a/tests/lib/libc/gen/t_closefrom.c Mon May 09 09:27:37 2011 +0000
+++ b/tests/lib/libc/gen/t_closefrom.c Mon May 09 10:50:02 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_closefrom.c,v 1.1 2011/05/09 05:17:12 jruoho Exp $ */
+/* $NetBSD: t_closefrom.c,v 1.2 2011/05/09 10:50:02 jruoho Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_closefrom.c,v 1.1 2011/05/09 05:17:12 jruoho Exp $");
+__RCSID("$NetBSD: t_closefrom.c,v 1.2 2011/05/09 10:50:02 jruoho Exp $");
#include <atf-c.h>
#include <errno.h>
@@ -61,8 +61,6 @@
ATF_REQUIRE(cur2 >= 0);
ATF_REQUIRE(cur1 - 1 == cur2);
-
- ATF_REQUIRE(close(fd) == 0);
ATF_REQUIRE(unlink(path) == 0);
}
Home |
Main Index |
Thread Index |
Old Index