diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-02-09 18:44:11 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-02-09 18:44:11 +0000 |
commit | c8b7d50693466b7106a67f593af735a175a2db7b (patch) | |
tree | ee6ba97ac916658bd7b1ab0de6c92db52cf59ef4 /sys/compat | |
parent | 237f8a7a47b749ae5e3cee62ada99ff16f7aa371 (diff) |
constify static data
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/ossaudio/ossaudio.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/compat/ossaudio/ossaudio.c b/sys/compat/ossaudio/ossaudio.c index 4082d568bef..77ef973801e 100644 --- a/sys/compat/ossaudio/ossaudio.c +++ b/sys/compat/ossaudio/ossaudio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ossaudio.c,v 1.2 1998/04/26 22:15:42 provos Exp $ */ +/* $OpenBSD: ossaudio.c,v 1.3 2001/02/09 18:44:10 mickey Exp $ */ /* $NetBSD: ossaudio.c,v 1.23 1997/10/19 07:41:52 augustss Exp $ */ /* @@ -512,10 +512,10 @@ getdevinfo(fp, p) { mixer_devinfo_t mi; int i; - static struct { - char *name; + static const struct oss_devs { + const char *name; int code; - } *dp, devs[] = { + } devs[] = { { AudioNmicrophone, OSS_SOUND_MIXER_MIC }, { AudioNline, OSS_SOUND_MIXER_LINE }, { AudioNcd, OSS_SOUND_MIXER_CD }, @@ -537,12 +537,13 @@ getdevinfo(fp, p) /* { AudioNmixerout, ?? },*/ { 0, -1 } }; + register const struct oss_devs *dp; int (*ioctlf) __P((struct file *, u_long, caddr_t, struct proc *)) = fp->f_ops->fo_ioctl; struct vnode *vp; struct vattr va; static struct audiodevinfo devcache = { 0 }; - struct audiodevinfo *di = &devcache; + register struct audiodevinfo *di = &devcache; /* Figure out what device it is so we can check if the * cached data is valid. |