diff options
author | jkh <jkh@FreeBSD.org> | 1995-11-29 01:07:59 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-11-29 01:07:59 +0000 |
commit | 8b518c54b47f7a852f4e88e1174e3dc3edc4bca1 (patch) | |
tree | 1edc6902afaa1aa0384c0537aa6ab3d68b13456c /sys/i386/isa/sound/soundcard.c | |
parent | 072ed4b1b938c9263f06b0b51f077d17ec0363be (diff) | |
download | FreeBSD-src-8b518c54b47f7a852f4e88e1174e3dc3edc4bca1.zip FreeBSD-src-8b518c54b47f7a852f4e88e1174e3dc3edc4bca1.tar.gz |
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
Diffstat (limited to 'sys/i386/isa/sound/soundcard.c')
-rw-r--r-- | sys/i386/isa/sound/soundcard.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; |