summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-05-16 09:01:57 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-05-16 09:01:57 +0000
commitcbac1a9ea0fd1d8a6ed645553cc1da02a6d20283 (patch)
treecc36832dcef6b62ad0e34b32214d6bbdcab76f93
parent62ae37bb2897a86dd21e0f2bf0dca2721417edbc (diff)
in aucat_getpar() and aucat_getcap(), initialize the message to send
with AMSG_INIT(), rather than the reply we expect.
-rw-r--r--lib/libsndio/aucat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libsndio/aucat.c b/lib/libsndio/aucat.c
index 3c20365ae5b..e851a3cec71 100644
--- a/lib/libsndio/aucat.c
+++ b/lib/libsndio/aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aucat.c,v 1.17 2009/05/15 13:10:39 ratchov Exp $ */
+/* $OpenBSD: aucat.c,v 1.18 2009/05/16 09:01:56 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -358,7 +358,7 @@ aucat_getpar(struct sio_hdl *sh, struct sio_par *par)
{
struct aucat_hdl *hdl = (struct aucat_hdl *)sh;
- AMSG_INIT(&hdl->rmsg);
+ AMSG_INIT(&hdl->wmsg);
hdl->wmsg.cmd = AMSG_GETPAR;
hdl->wtodo = sizeof(struct amsg);
if (!aucat_wmsg(hdl))
@@ -393,7 +393,7 @@ aucat_getcap(struct sio_hdl *sh, struct sio_cap *cap)
{
struct aucat_hdl *hdl = (struct aucat_hdl *)sh;
- AMSG_INIT(&hdl->rmsg);
+ AMSG_INIT(&hdl->wmsg);
hdl->wmsg.cmd = AMSG_GETCAP;
hdl->wtodo = sizeof(struct amsg);
if (!aucat_wmsg(hdl))