From b8af75c693afc42872ff503c8416263e772547fa Mon Sep 17 00:00:00 2001 From: glebius Date: Tue, 11 Nov 2014 22:08:18 +0000 Subject: [PATCH] Fix build. --- sys/compat/freebsd32/freebsd32_misc.c | 2 ++ sys/kern/uipc_syscalls.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c index b2ec8b357d84..892d3c0a7007 100644 --- a/sys/compat/freebsd32/freebsd32_misc.c +++ b/sys/compat/freebsd32/freebsd32_misc.c @@ -1570,6 +1570,8 @@ freebsd32_do_sendfile(struct thread *td, struct sf_hdtr32 hdtr32; struct sf_hdtr hdtr; struct uio *hdr_uio, *trl_uio; + struct file *fp; + cap_rights_t rights; struct iovec32 *iov32; off_t offset, sbytes; int error; diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index b53883deff76..85487cd93a2f 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1940,7 +1940,7 @@ do_sendfile(struct thread *td, struct sendfile_args *uap, int compat) } } - AUDIT_ARG_FD(src_fd); + AUDIT_ARG_FD(uap->fd); /* * sendfile(2) can start at any offset within a file so we require -- 2.39.5