diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2007-10-20 02:34:55 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2007-10-20 02:34:55 +0000 |
commit | a733872c8b4be700b34780ff7b4903d24f8c6a78 (patch) | |
tree | b580c5db22be846ed70fdd9067b752c958cf5139 | |
parent | 94b8ee8011b595cb4c28c033262fe0f845540e7b (diff) |
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.c | 6 |
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; } |