summaryrefslogtreecommitdiffstats
path: root/lib/libsndio
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2009-10-17 10:55:43 +0000
committerratchov <ratchov@openbsd.org>2009-10-17 10:55:43 +0000
commita5555ab81eeeadc6ce249a0e965d4d380393d09d (patch)
tree1bab0d308694d036b44e6bb0b097864007e76baf /lib/libsndio
parentAlways move the cursor position on !xenl terminals, since there is no invisible (diff)
downloadwireguard-openbsd-a5555ab81eeeadc6ce249a0e965d4d380393d09d.tar.xz
wireguard-openbsd-a5555ab81eeeadc6ce249a0e965d4d380393d09d.zip
Add version number to aucat protocol. It's not used yet,
but later, it will permit aucat to reject connections from clients statically linked to a unsupported version of libsndio. idea from kittenis, otto and sthen
Diffstat (limited to 'lib/libsndio')
-rw-r--r--lib/libsndio/aucat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libsndio/aucat.c b/lib/libsndio/aucat.c
index b8d274ef97b..cc1e977b1f1 100644
--- a/lib/libsndio/aucat.c
+++ b/lib/libsndio/aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aucat.c,v 1.28 2009/08/28 10:52:14 ratchov Exp $ */
+/* $OpenBSD: aucat.c,v 1.29 2009/10/17 10:55:43 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -236,6 +236,7 @@ sio_open_aucat(const char *str, unsigned mode, int nbio)
*/
AMSG_INIT(&hdl->wmsg);
hdl->wmsg.cmd = AMSG_HELLO;
+ hdl->wmsg.u.hello.version = AMSG_VERSION;
hdl->wmsg.u.hello.proto = 0;
if (mode & SIO_PLAY)
hdl->wmsg.u.hello.proto |= AMSG_PLAY;