aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/sys_pipe.c
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2002-07-22 19:05:44 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2002-07-22 19:05:44 +0000
commit1a5a6416007220051af95fdfea6613722c4e35ed (patch)
tree20a162162df270e0e53500fff596c24fc401ea30 /sys/kern/sys_pipe.c
parentba41a3d37e3eeda4db081cdad19f921655308703 (diff)
downloadsrc-1a5a6416007220051af95fdfea6613722c4e35ed.tar.gz
src-1a5a6416007220051af95fdfea6613722c4e35ed.zip
Remove unneeded caddr_t casts.
Notes
Notes: svn path=/head/; revision=100527
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r--sys/kern/sys_pipe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index 135d5eb791bc..81e26bcd12ab 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -239,7 +239,7 @@ pipe(td, uap)
FILE_LOCK(rf);
rf->f_flag = FREAD | FWRITE;
rf->f_type = DTYPE_PIPE;
- rf->f_data = (caddr_t)rpipe;
+ rf->f_data = rpipe;
rf->f_ops = &pipeops;
FILE_UNLOCK(rf);
error = falloc(td, &wf, &fd);
@@ -260,7 +260,7 @@ pipe(td, uap)
FILE_LOCK(wf);
wf->f_flag = FREAD | FWRITE;
wf->f_type = DTYPE_PIPE;
- wf->f_data = (caddr_t)wpipe;
+ wf->f_data = wpipe;
wf->f_ops = &pipeops;
FILE_UNLOCK(wf);
td->td_retval[1] = fd;
@@ -729,7 +729,7 @@ pipe_clone_write_buffer(wpipe)
PIPE_GET_GIANT(wpipe);
bcopy((caddr_t) wpipe->pipe_map.kva + pos,
- (caddr_t) wpipe->pipe_buffer.buffer, size);
+ wpipe->pipe_buffer.buffer, size);
pipe_destroy_write_buffer(wpipe);
PIPE_DROP_GIANT(wpipe);
}
@@ -1235,7 +1235,7 @@ pipe_stat(fp, ub, td)
{
struct pipe *pipe = (struct pipe *)fp->f_data;
- bzero((caddr_t)ub, sizeof(*ub));
+ bzero(ub, sizeof(*ub));
ub->st_mode = S_IFIFO;
ub->st_blksize = pipe->pipe_buffer.size;
ub->st_size = pipe->pipe_buffer.cnt;
@@ -1376,7 +1376,7 @@ pipe_kqfilter(struct file *fp, struct knote *kn)
default:
return (1);
}
- kn->kn_hook = (caddr_t)cpipe;
+ kn->kn_hook = cpipe;
PIPE_LOCK(cpipe);
SLIST_INSERT_HEAD(&cpipe->pipe_sel.si_note, kn, kn_selnext);