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/f0b6a5592bec
branches: trunk
changeset: 1002988:f0b6a5592bec
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 83ba3e733210 -r f0b6a5592bec 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