From 723ea6bc933e9d31d9e10d895f59df4e8cb513c2 Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Mon, 16 Feb 2015 17:19:28 +0000 Subject: [PATCH] kdump: sendfile(2) "flags" argument needs casting on 64-bit platforms. MFC after: 1 week Sponsored by: Nginx, Inc. --- usr.bin/kdump/kdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index b8e5903a0c8..fe7bcd27960 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -1155,7 +1155,7 @@ ktrsyscall(struct ktr_syscall *ktr, u_int flags) print_number(ip, narg, c); print_number(ip, narg, c); putchar(','); - sendfileflagsname(*ip); + sendfileflagsname(*(int *)ip); ip++; narg--; break;