]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Fix build.
authorglebius <glebius@FreeBSD.org>
Tue, 11 Nov 2014 22:08:18 +0000 (22:08 +0000)
committerglebius <glebius@FreeBSD.org>
Tue, 11 Nov 2014 22:08:18 +0000 (22:08 +0000)
sys/compat/freebsd32/freebsd32_misc.c
sys/kern/uipc_syscalls.c

index b2ec8b357d84f74b4ecc573b53511ab34075aa3e..892d3c0a7007d62409b4db2217cb7b7d62257d3a 100644 (file)
@@ -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;
index b53883deff76c02ac7839368c52225eb1d2f9032..85487cd93a2f19bb6ff7a90cc49018c5570d3689 100644 (file)
@@ -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