summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2001-07-27 15:26:16 +0000
committerart <art@openbsd.org>2001-07-27 15:26:16 +0000
commitae74361f90efd96daad6150571431256ccf8c6de (patch)
tree38d304c10fd48e34c97f1ed8f1583faf974b7989
parentIf smart card support is compiled in and a smart card is being used (diff)
downloadwireguard-openbsd-ae74361f90efd96daad6150571431256ccf8c6de.tar.xz
wireguard-openbsd-ae74361f90efd96daad6150571431256ccf8c6de.zip
Correct return values from audiommap.
-rw-r--r--sys/dev/audio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c
index f6a394042a4..e9c28756767 100644
--- a/sys/dev/audio.c
+++ b/sys/dev/audio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: audio.c,v 1.26 2001/07/03 07:41:53 hugh Exp $ */
+/* $OpenBSD: audio.c,v 1.27 2001/07/27 15:26:16 art Exp $ */
/* $NetBSD: audio.c,v 1.105 1998/09/27 16:43:56 christos Exp $ */
/*
@@ -801,10 +801,10 @@ audiommap(dev, off, prot)
if (unit >= audio_cd.cd_ndevs ||
(sc = audio_cd.cd_devs[unit]) == NULL)
- return ENXIO;
+ return (-1);
if (sc->sc_dying)
- return (EIO);
+ return (-1);
sc->sc_refcnt ++;
switch (AUDIODEV(dev)) {