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 fix mismatched paren, also the previous c...
details: https://anonhg.NetBSD.org/src/rev/64ea6eeb0c07
branches: trunk
changeset: 350440:64ea6eeb0c07
user: christos <christos%NetBSD.org@localhost>
date: Wed Jan 11 18:09:40 2017 +0000
description:
fix mismatched paren, also the previous commit should say and check error
for -1.
diffstat:
tests/lib/libc/gen/t_dir.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r c15d5c0000c6 -r 64ea6eeb0c07 tests/lib/libc/gen/t_dir.c
--- a/tests/lib/libc/gen/t_dir.c Wed Jan 11 18:07:37 2017 +0000
+++ b/tests/lib/libc/gen/t_dir.c Wed Jan 11 18:09:40 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_dir.c,v 1.8 2017/01/11 07:26:17 christos Exp $ */
+/* $NetBSD: t_dir.c,v 1.9 2017/01/11 18:09:40 christos Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
#define CREAT(x, m) do { \
int _creat_fd; \
- ATF_REQUIRE_MSG((_creat_fd = creat((x), (m)) != -1), \
+ ATF_REQUIRE_MSG((_creat_fd = creat((x), (m))) != -1, \
"creat(%s, %x) failed: %s", (x), (m), \
strerror(errno)); \
(void)close(_creat_fd); \
Home |
Main Index |
Thread Index |
Old Index