PR port-amd64/53316: two int don't make a long (when passed to

a C variadic function)
This commit is contained in:
martin 2018-05-28 07:55:56 +00:00
parent 8457308c68
commit 6ad8477b8b

View File

@ -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 @@ ATF_TC_BODY(mmap___syscall, tc)
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);