diff options
author | 2009-10-17 10:55:43 +0000 | |
---|---|---|
committer | 2009-10-17 10:55:43 +0000 | |
commit | a5555ab81eeeadc6ce249a0e965d4d380393d09d (patch) | |
tree | 1bab0d308694d036b44e6bb0b097864007e76baf /lib/libsndio | |
parent | Always move the cursor position on !xenl terminals, since there is no invisible (diff) | |
download | wireguard-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.c | 3 |
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; |