git: 6e9599a84652 - stable/13 - fifofs: ansify

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 09 Apr 2023 21:35:39 UTC
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=6e9599a846521f58a46f218b91271b394dffb419

commit 6e9599a846521f58a46f218b91271b394dffb419
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-02-07 23:18:51 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-04-09 15:39:29 +0000

    fifofs: ansify
    
    Reported by:    clang 15
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    
    (cherry picked from commit ed40bc50dff06219baa251f1d238249624cb74ec)
---
 sys/fs/fifofs/fifo_vnops.c | 34 +++++-----------------------------
 1 file changed, 5 insertions(+), 29 deletions(-)

diff --git a/sys/fs/fifofs/fifo_vnops.c b/sys/fs/fifofs/fifo_vnops.c
index 1b941620b080..2b57cf68be8c 100644
--- a/sys/fs/fifofs/fifo_vnops.c
+++ b/sys/fs/fifofs/fifo_vnops.c
@@ -127,14 +127,7 @@ fifo_cleanup(struct vnode *vp)
  */
 /* ARGSUSED */
 static int
-fifo_open(ap)
-	struct vop_open_args /* {
-		struct vnode *a_vp;
-		int  a_mode;
-		struct ucred *a_cred;
-		struct thread *a_td;
-		struct file *a_fp;
-	} */ *ap;
+fifo_open(struct vop_open_args *ap)
 {
 	struct vnode *vp;
 	struct file *fp;
@@ -269,13 +262,7 @@ fifo_open(ap)
  */
 /* ARGSUSED */
 static int
-fifo_close(ap)
-	struct vop_close_args /* {
-		struct vnode *a_vp;
-		int  a_fflag;
-		struct ucred *a_cred;
-		struct thread *a_td;
-	} */ *ap;
+fifo_close(struct vop_close_args *ap)
 {
 	struct vnode *vp;
 	struct fifoinfo *fip;
@@ -332,8 +319,7 @@ fifo_close(ap)
  * Print out internal contents of a fifo vnode.
  */
 int
-fifo_printinfo(vp)
-	struct vnode *vp;
+fifo_printinfo(struct vnode *vp)
 {
 	struct fifoinfo *fip = vp->v_fifoinfo;
 
@@ -350,10 +336,7 @@ fifo_printinfo(vp)
  * Print out the contents of a fifo vnode.
  */
 static int
-fifo_print(ap)
-	struct vop_print_args /* {
-		struct vnode *a_vp;
-	} */ *ap;
+fifo_print(struct vop_print_args *ap)
 {
 	printf("    ");
 	fifo_printinfo(ap->a_vp);
@@ -366,14 +349,7 @@ fifo_print(ap)
  */
 /* ARGSUSED */
 static int
-fifo_advlock(ap)
-	struct vop_advlock_args /* {
-		struct vnode *a_vp;
-		caddr_t  a_id;
-		int  a_op;
-		struct flock *a_fl;
-		int  a_flags;
-	} */ *ap;
+fifo_advlock(struct vop_advlock_args *ap)
 {
 
 	if ((ap->a_flags & F_FLOCK) == 0)