From ce7299939b72e24832454929dbcc49baa4a1b959 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 10 May 1999 18:13:30 +0000 Subject: [PATCH] correct params for sndmmap(). Don't bogo-initialize fields we don't understand. --- sys/i386/isa/sound/soundcard.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/i386/isa/sound/soundcard.c b/sys/i386/isa/sound/soundcard.c index e00e462f078f..0718183f3eba 100644 --- a/sys/i386/isa/sound/soundcard.c +++ b/sys/i386/isa/sound/soundcard.c @@ -80,7 +80,6 @@ sequencer_poll (int dev, struct fileinfo *file, int events, select_table * wait) static int sndprobe __P((struct isa_device *)); static int sndattach __P((struct isa_device *)); -static int sndmmap __P((dev_t dev, int offset, int nprot )); static d_open_t sndopen; static d_close_t sndclose; @@ -88,6 +87,7 @@ static d_ioctl_t sndioctl; static d_read_t sndread; static d_write_t sndwrite; static d_poll_t sndpoll; +static d_mmap_t sndmmap; static char driver_name[] = "snd"; @@ -96,7 +96,6 @@ static struct cdevsw snd_cdevsw = { sndopen, sndclose, sndread, sndwrite, sndioctl, nostop, noreset, nodevtotty, sndpoll, sndmmap, nostrategy, driver_name, - NULL, -1, }; @@ -147,7 +146,7 @@ get_time(void) } static int -sndmmap( dev_t dev, int offset, int nprot ) +sndmmap( dev_t dev, vm_offset_t offset, int nprot ) { struct dma_buffparms * dmap; u_int min = minor(dev) >> 4;