diff options
author | bde <bde@FreeBSD.org> | 1995-11-13 08:22:21 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-11-13 08:22:21 +0000 |
commit | bc3a8c9dbfcb0cc2d8413c1f9e7aa89e2ec3e43b (patch) | |
tree | 617d31839e20b27684a7f36ecf219c97a5655fbc /sys/kern | |
parent | 2b0462dbe2430651bba357191491e9e865bca6bf (diff) | |
download | FreeBSD-src-bc3a8c9dbfcb0cc2d8413c1f9e7aa89e2ec3e43b.zip FreeBSD-src-bc3a8c9dbfcb0cc2d8413c1f9e7aa89e2ec3e43b.tar.gz |
Fixed a cast in olseek().
Fixed confusing order of declarations of getvnode()'s args.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_extattr.c | 6 | ||||
-rw-r--r-- | sys/kern/vfs_syscalls.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index 8cc2e32..e8e32e6 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 - * $Id: vfs_syscalls.c,v 1.37 1995/11/05 21:01:01 dyson Exp $ + * $Id: vfs_syscalls.c,v 1.38 1995/11/12 06:43:07 bde Exp $ */ #include <sys/param.h> @@ -1068,7 +1068,7 @@ olseek(p, uap, retval) nuap.fd = uap->fd; nuap.offset = uap->offset; nuap.whence = uap->whence; - error = lseek(p, &nuap, &qret); + error = lseek(p, &nuap, (int *)&qret); *(long *)retval = qret; return (error); } @@ -2312,8 +2312,8 @@ out: int getvnode(fdp, fd, fpp) struct filedesc *fdp; - struct file **fpp; int fd; + struct file **fpp; { struct file *fp; diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 8cc2e32..e8e32e6 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 - * $Id: vfs_syscalls.c,v 1.37 1995/11/05 21:01:01 dyson Exp $ + * $Id: vfs_syscalls.c,v 1.38 1995/11/12 06:43:07 bde Exp $ */ #include <sys/param.h> @@ -1068,7 +1068,7 @@ olseek(p, uap, retval) nuap.fd = uap->fd; nuap.offset = uap->offset; nuap.whence = uap->whence; - error = lseek(p, &nuap, &qret); + error = lseek(p, &nuap, (int *)&qret); *(long *)retval = qret; return (error); } @@ -2312,8 +2312,8 @@ out: int getvnode(fdp, fd, fpp) struct filedesc *fdp; - struct file **fpp; int fd; + struct file **fpp; { struct file *fp; |