aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_syscalls.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2008-02-12 20:09:04 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2008-02-12 20:09:04 +0000
commit5f56182b6fc69b3e08fd2f20a715e566d2e2944d (patch)
tree6960888c6bfdf1b1f57904fc49a37303e846febf /sys/kern/vfs_syscalls.c
parent22999b6056c92499d67a84312e848344fc1fc679 (diff)
Change readlink(2)'s return type and type of the last argument
to match POSIX. Prodded by: Alexey Lyashkov
Notes
Notes: svn path=/head/; revision=176215
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r--sys/kern/vfs_syscalls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 3bb62434d19a..d05ca3a8b2be 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -2307,7 +2307,7 @@ kern_pathconf(struct thread *td, char *path, enum uio_seg pathseg, int name)
struct readlink_args {
char *path;
char *buf;
- int count;
+ size_t count;
};
#endif
int
@@ -2316,7 +2316,7 @@ readlink(td, uap)
register struct readlink_args /* {
char *path;
char *buf;
- int count;
+ size_t count;
} */ *uap;
{
@@ -2326,7 +2326,7 @@ readlink(td, uap)
int
kern_readlink(struct thread *td, char *path, enum uio_seg pathseg, char *buf,
- enum uio_seg bufseg, int count)
+ enum uio_seg bufseg, size_t count)
{
register struct vnode *vp;
struct iovec aiov;