Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/ossaudio Fix error handling, returns an errno, no...
details: https://anonhg.NetBSD.org/src/rev/2ef3307563bb
branches: trunk
changeset: 964953:2ef3307563bb
user: maxv <maxv%NetBSD.org@localhost>
date: Fri Aug 23 12:42:14 2019 +0000
description:
Fix error handling, returns an errno, not -1.
diffstat:
sys/compat/ossaudio/ossaudio.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 75f5dec53b1a -r 2ef3307563bb sys/compat/ossaudio/ossaudio.c
--- a/sys/compat/ossaudio/ossaudio.c Fri Aug 23 12:09:17 2019 +0000
+++ b/sys/compat/ossaudio/ossaudio.c Fri Aug 23 12:42:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ossaudio.c,v 1.74 2019/02/03 03:19:26 mrg Exp $ */
+/* $NetBSD: ossaudio.c,v 1.75 2019/08/23 12:42:14 maxv Exp $ */
/*-
* Copyright (c) 1997, 2008 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ossaudio.c,v 1.74 2019/02/03 03:19:26 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ossaudio.c,v 1.75 2019/08/23 12:42:14 maxv Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -966,7 +966,7 @@
}
for(i = 0; i < NETBSD_MAXDEVS; i++) {
mi.index = i;
- if (ioctlf(fp, AUDIO_MIXER_DEVINFO, &mi) < 0)
+ if (ioctlf(fp, AUDIO_MIXER_DEVINFO, &mi) != 0)
break;
switch(mi.type) {
case AUDIO_MIXER_VALUE:
@@ -994,7 +994,7 @@
}
for(i = 0; i < NETBSD_MAXDEVS; i++) {
mi.index = i;
- if (ioctlf(fp, AUDIO_MIXER_DEVINFO, &mi) < 0)
+ if (ioctlf(fp, AUDIO_MIXER_DEVINFO, &mi) != 0)
break;
if (strcmp(mi.label.name, AudioNsource) != 0)
continue;
Home |
Main Index |
Thread Index |
Old Index