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 PR port-amd64/53316: two int don't make a...
details: https://anonhg.NetBSD.org/src/rev/9ef2c5d8502b
branches: trunk
changeset: 319362:9ef2c5d8502b
user: martin <martin%NetBSD.org@localhost>
date: Mon May 28 07:55:56 2018 +0000
description:
PR port-amd64/53316: two int don't make a long (when passed to
a C variadic function)
diffstat:
tests/lib/libc/sys/t_syscall.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r ba1536a8bf42 -r 9ef2c5d8502b tests/lib/libc/sys/t_syscall.c
--- a/tests/lib/libc/sys/t_syscall.c Mon May 28 05:27:51 2018 +0000
+++ b/tests/lib/libc/sys/t_syscall.c Mon May 28 07:55:56 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_syscall.c,v 1.2 2018/05/25 16:30:03 martin Exp $ */
+/* $NetBSD: t_syscall.c,v 1.3 2018/05/28 07:55:56 martin Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_syscall.c,v 1.2 2018/05/25 16:30:03 martin Exp $");
+__RCSID("$NetBSD: t_syscall.c,v 1.3 2018/05/28 07:55:56 martin Exp $");
#include <atf-c.h>
@@ -99,7 +99,8 @@
write(fd, secrect_data, sizeof(secrect_data));
p = (const char *)__SYSCALL_TO_UINTPTR_T(__syscall(SYS_mmap,
- 0, sizeof(secrect_data), PROT_READ, MAP_PRIVATE, fd, 0, 0, 0));
+ 0, sizeof(secrect_data), PROT_READ, MAP_PRIVATE, fd,
+ /* pad*/ 0, (off_t)0));
ATF_REQUIRE(p != NULL);
ATF_REQUIRE(strcmp(p, secrect_data) == 0);
Home |
Main Index |
Thread Index |
Old Index