summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjakemsr <jakemsr@openbsd.org>2007-10-20 02:34:54 +0000
committerjakemsr <jakemsr@openbsd.org>2007-10-20 02:34:54 +0000
commita07866b3124ece7c0c2b7f452cf30a5ae2f6bf0b (patch)
treed5e5c5a53eb1ae08c302b0dacf0210929828367c
parentPrint the type of DIMM (SO-DIMM/Mini-DIMM/Micro-DIMM) for (diff)
downloadwireguard-openbsd-a07866b3124ece7c0c2b7f452cf30a5ae2f6bf0b.tar.xz
wireguard-openbsd-a07866b3124ece7c0c2b7f452cf30a5ae2f6bf0b.zip
oops, too much copying from select(2) manual
noticed by and fix from deanna@, thanks
-rw-r--r--regress/sys/dev/audio_rw/audiotest_rw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/sys/dev/audio_rw/audiotest_rw.c b/regress/sys/dev/audio_rw/audiotest_rw.c
index a175f262a68..3523b70a71b 100644
--- a/regress/sys/dev/audio_rw/audiotest_rw.c
+++ b/regress/sys/dev/audio_rw/audiotest_rw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: audiotest_rw.c,v 1.8 2007/10/19 09:03:05 jakemsr Exp $ */
+/* $OpenBSD: audiotest_rw.c,v 1.9 2007/10/20 02:34:54 jakemsr Exp $ */
/*
* Copyright (c) 2007 Jacob Meuser <jakemsr@sdf.lonestar.org>
@@ -226,7 +226,7 @@ int ret;
sfdsr = NULL;
sfdsw = NULL;
if (mode & AUMODE_RECORD) {
- if ((sfdsr = calloc(max + 1, sizeof(fd_mask))) == NULL) {
+ if ((sfdsr = calloc(max + 1, sizeof(fd_set))) == NULL) {
warn("fd_set sfdsr");
return 0;
}
@@ -234,7 +234,7 @@ int ret;
FD_SET(audio_fd, sfdsr);
}
if (mode & AUMODE_PLAY) {
- if ((sfdsw = calloc(max + 1, sizeof(fd_mask))) == NULL) {
+ if ((sfdsw = calloc(max + 1, sizeof(fd_set))) == NULL) {
warn("fd_set sfdsw");
return 0;
}