diff options
author | dim <dim@FreeBSD.org> | 2012-02-28 21:45:21 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-02-28 21:45:21 +0000 |
commit | e045194768da36c96be83da30e4aaa8179f2ac11 (patch) | |
tree | e2ff850eca8f4f612840a4d0ba63f222ba633880 /sys/kern/sys_pipe.c | |
parent | 176868cc041aac1f54ce360fe14b88cfcfba715d (diff) | |
download | FreeBSD-src-e045194768da36c96be83da30e4aaa8179f2ac11.zip FreeBSD-src-e045194768da36c96be83da30e4aaa8179f2ac11.tar.gz |
Change definition of pipe_chmod() from K&R to C99, to avoid the
following clang warning:
sys/kern/sys_pipe.c:1556:10: error: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'mode_t'
(aka 'unsigned short') declared in a previous prototype [-Werror]
mode_t mode;
^
sys/kern/sys_pipe.c:155:19: note: previous declaration is here
static fo_chmod_t pipe_chmod;
^
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r-- | sys/kern/sys_pipe.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 2902349..fd71569 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -1551,11 +1551,7 @@ pipe_close(fp, td) } static int -pipe_chmod(fp, mode, active_cred, td) - struct file *fp; - mode_t mode; - struct ucred *active_cred; - struct thread *td; +pipe_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) { struct pipe *cpipe; int error; |