diff options
author | bde <bde@FreeBSD.org> | 1995-11-22 07:43:53 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-11-22 07:43:53 +0000 |
commit | 825daf3e3289f2ab37f6f075a4eb4270b8f846c2 (patch) | |
tree | 283999b082c94c12b3962535722ff43fa3b41aa0 /sys/compat/linux/linux_file.c | |
parent | 7eaa0694de90a85e4ba79d7bbd0b091b68f40446 (diff) | |
download | FreeBSD-src-825daf3e3289f2ab37f6f075a4eb4270b8f846c2.zip FreeBSD-src-825daf3e3289f2ab37f6f075a4eb4270b8f846c2.tar.gz |
Completed function declarations and added prototypes.
Removed some unnecessary #includes.
Fixed warnings about nested externs.
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r-- | sys/compat/linux/linux_file.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index b851d29..8bdb3a7 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -25,12 +25,12 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_file.c,v 1.2 1995/08/28 00:50:08 swallace Exp $ + * $Id: linux_file.c,v 1.3 1995/10/10 23:13:27 swallace Exp $ */ -#include <i386/linux/linux.h> #include <sys/param.h> #include <sys/systm.h> +#include <sys/sysproto.h> #include <sys/fcntl.h> #include <sys/file.h> #include <sys/filedesc.h> @@ -41,9 +41,11 @@ #include <sys/malloc.h> #include <sys/exec.h> #include <sys/dirent.h> -#include <vm/vm.h> + #include <ufs/ufs/dir.h> +#include <i386/linux/linux.h> +#include <i386/linux/sysproto.h> struct linux_creat_args { char *path; @@ -386,7 +388,8 @@ again: auio.uio_resid = buflen; auio.uio_offset = off - (off_t)blockoff; - error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, 0, 0); + error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, (int *) NULL, + (u_int **) NULL); if (error) { goto out; } |