From a733872c8b4be700b34780ff7b4903d24f8c6a78 Mon Sep 17 00:00:00 2001 From: Jacob Meuser Date: Sat, 20 Oct 2007 02:34:55 +0000 Subject: oops, too much copying from select(2) manual noticed by and fix from deanna@, thanks --- regress/sys/dev/audio_rw/audiotest_rw.c | 6 +++--- 1 file 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 @@ -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; } -- cgit v1.2.3