From 8b518c54b47f7a852f4e88e1174e3dc3edc4bca1 Mon Sep 17 00:00:00 2001 From: jkh Date: Wed, 29 Nov 1995 01:07:59 +0000 Subject: A batch of Jim Lowe's patches: o Add signed/unsigned functionality to the matrox meteor device driver. o Apply a few fixes to the sound driver. o Add a ``SPIGOT_UNSECURE'' compile time definition so, if one defines SPIGOT_UNSECURE in their conf file, then they can use the spigot w/o root. There is a warning that this allows users access to the IO page which is probably not secure. Submitted by: james --- sys/i386/isa/sound/soundcard.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/i386/isa/sound/soundcard.c') diff --git a/sys/i386/isa/sound/soundcard.c b/sys/i386/isa/sound/soundcard.c index 8542e0a..d417c30 100644 --- a/sys/i386/isa/sound/soundcard.c +++ b/sys/i386/isa/sound/soundcard.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: soundcard.c,v 1.30 1995/11/04 13:24:48 bde Exp $ + * $Id: soundcard.c,v 1.31 1995/11/28 09:43:45 julian Exp $ */ #include "sound_config.h" @@ -53,7 +53,10 @@ u_int snd7_imask; u_int snd8_imask; u_int snd9_imask; -#define FIX_RETURN(ret) {if ((ret)<0) return -(ret); else return 0;} +#define FIX_RETURN(ret) { \ + int tmp_ret = (ret); \ + if (tmp_ret<0) return -tmp_ret; else return 0; \ + } static int timer_running = 0; -- cgit v1.1