svn commit: r278857 - head/usr.bin/kdump

Sergey Kandaurov pluknet at FreeBSD.org
Mon Feb 16 17:19:29 UTC 2015


Author: pluknet
Date: Mon Feb 16 17:19:28 2015
New Revision: 278857
URL: https://svnweb.freebsd.org/changeset/base/278857

Log:
  kdump: sendfile(2) "flags" argument needs casting on 64-bit platforms.
  
  MFC after:	1 week
  Sponsored by:	Nginx, Inc.

Modified:
  head/usr.bin/kdump/kdump.c

Modified: head/usr.bin/kdump/kdump.c
==============================================================================
--- head/usr.bin/kdump/kdump.c	Mon Feb 16 17:05:59 2015	(r278856)
+++ head/usr.bin/kdump/kdump.c	Mon Feb 16 17:19:28 2015	(r278857)
@@ -1155,7 +1155,7 @@ ktrsyscall(struct ktr_syscall *ktr, u_in
 				print_number(ip, narg, c);
 				print_number(ip, narg, c);
 				putchar(',');
-				sendfileflagsname(*ip);
+				sendfileflagsname(*(int *)ip);
 				ip++;
 				narg--;
 				break;


More information about the svn-src-head mailing list