Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/sys Avoid harmless compiler (integer) warnings.
details: https://anonhg.NetBSD.org/src/rev/a5b4dda85047
branches: trunk
changeset: 778933:a5b4dda85047
user: jruoho <jruoho%NetBSD.org@localhost>
date: Sat Apr 21 01:15:13 2012 +0000
description:
Avoid harmless compiler (integer) warnings.
diffstat:
tests/lib/libc/sys/t_mlock.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r b71ecd26a59d -r a5b4dda85047 tests/lib/libc/sys/t_mlock.c
--- a/tests/lib/libc/sys/t_mlock.c Sat Apr 21 01:03:46 2012 +0000
+++ b/tests/lib/libc/sys/t_mlock.c Sat Apr 21 01:15:13 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mlock.c,v 1.1 2012/04/20 12:11:29 jruoho Exp $ */
+/* $NetBSD: t_mlock.c,v 1.2 2012/04/21 01:15:13 jruoho Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_mlock.c,v 1.1 2012/04/20 12:11:29 jruoho Exp $");
+__RCSID("$NetBSD: t_mlock.c,v 1.2 2012/04/21 01:15:13 jruoho Exp $");
#include <sys/mman.h>
#include <sys/resource.h>
@@ -61,7 +61,6 @@
atf_tc_skip("page size too small");
for (size_t i = page; i >= 1; i = i - 1024) {
- (void)fprintf(stderr, "trying to lock %zu bytes\n", page - i);
(void)mlock(buf, page - i);
(void)munlock(buf, page - i);
}
Home |
Main Index |
Thread Index |
Old Index