From aa0b46948e92bbfb09002dce083993c0b2465c56 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Mon, 13 Feb 2023 18:28:09 +0000 Subject: [PATCH] speaker: ansify Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/speaker/spkr.c | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c index 86b58cda9843..b12effe4ea93 100644 --- a/sys/dev/speaker/spkr.c +++ b/sys/dev/speaker/spkr.c @@ -403,11 +403,7 @@ static int spkr_active = FALSE; /* exclusion flag */ static char *spkr_inbuf; /* incoming buf */ static int -spkropen(dev, flags, fmt, td) - struct cdev *dev; - int flags; - int fmt; - struct thread *td; +spkropen(struct cdev *dev, int flags, int fmt, struct thread *td) { #ifdef DEBUG (void) printf("spkropen: entering with dev = %s\n", devtoname(dev)); @@ -427,10 +423,7 @@ spkropen(dev, flags, fmt, td) } static int -spkrwrite(dev, uio, ioflag) - struct cdev *dev; - struct uio *uio; - int ioflag; +spkrwrite(struct cdev *dev, struct uio *uio, int ioflag) { #ifdef DEBUG printf("spkrwrite: entering with dev = %s, count = %zd\n", @@ -456,11 +449,7 @@ spkrwrite(dev, uio, ioflag) } static int -spkrclose(dev, flags, fmt, td) - struct cdev *dev; - int flags; - int fmt; - struct thread *td; +spkrclose(struct cdev *dev, int flags, int fmt, struct thread *td) { #ifdef DEBUG (void) printf("spkrclose: entering with dev = %s\n", devtoname(dev)); @@ -474,12 +463,8 @@ spkrclose(dev, flags, fmt, td) } static int -spkrioctl(dev, cmd, cmdarg, flags, td) - struct cdev *dev; - unsigned long cmd; - caddr_t cmdarg; - int flags; - struct thread *td; +spkrioctl(struct cdev *dev, unsigned long cmd, caddr_t cmdarg, int flags, + struct thread *td) { #ifdef DEBUG (void) printf("spkrioctl: entering with dev = %s, cmd = %lx\n",