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; ^
This commit is contained in:
parent
e168e5f947
commit
ac382cb7f1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232271
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user