diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-05-16 09:01:57 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-05-16 09:01:57 +0000 |
commit | cbac1a9ea0fd1d8a6ed645553cc1da02a6d20283 (patch) | |
tree | cc36832dcef6b62ad0e34b32214d6bbdcab76f93 | |
parent | 62ae37bb2897a86dd21e0f2bf0dca2721417edbc (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.c | 6 |
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)) |