Subject: kern/1167: missing typedef in /sys/sys/audioio.h
To: None <gnats-admin@sun-lamp.pc.cs.cmu.edu>
From: Mike Long <mikel@shore.net>
List: netbsd-bugs
Date: 06/28/1995 02:35:06
>Number:         1167
>Category:       kern
>Synopsis:       missing typedef in /sys/sys/audioio.h
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 28 02:35:04 1995
>Originator:     Mike Long
>Organization:
	procrastinators anonymous
>Release:        6/27/95
>Environment:
	
System: NetBSD azathoth 1.0A NetBSD 1.0A (AZATHOTH) #0: Sat Jun 24 15:40:37 EDT 1995 root@azathoth:/usr/src/sys/arch/i386/compile/AZATHOTH i386


>Description:
	/sys/sys/audioio.h is missing a typedef for audio_prinfo_t.
	This typedef exists in Sun's /usr/include/sun/audioio.h,
	and also complements the existing typedef of audio_info_t.
>How-To-Repeat:
	#include <sys/audioio.h>
>Fix:
	A simple patch:

--- /usr/src/sys/sys/audioio.h~ Thu May 11 06:27:53 1995
+++ /usr/src/sys/sys/audioio.h  Wed Jun 28 00:42:35 1995
@@ -59,6 +59,7 @@
        u_char  open;           /* non-zero if currently open */
        u_char  active;         /* non-zero if I/O is currently active */
 };
+typedef struct audio_prinfo audio_prinfo_t;
 
 struct audio_info {
        struct  audio_prinfo play;      /* Info for play (output) side */

>Audit-Trail:
>Unformatted: