sad

simple audio daemon
git clone git://git.2f30.org/sad
Log | Files | Refs | LICENSE

commit 2211286fe6c0f9de3330abbfdb173bc02cdbab55
parent a60e06ce7795add484ae86635c29152554c1cf6f
Author: sin <sin@2f30.org>
Date:   Wed, 24 Dec 2014 14:42:01 +0000

Fix indentation and send protocol version

Diffstat:
Msad.c | 3++-
Msad.h | 2+-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/sad.c b/sad.c @@ -99,7 +99,7 @@ doaudio(void) int main(void) { - int listenfd, clifd, n, i; + int listenfd, clifd, n, i; FD_ZERO(&master); FD_ZERO(&rfds); @@ -127,6 +127,7 @@ main(void) FD_SET(clifd, &master); if (clifd > fdmax) fdmax = clifd; + dprintf(clifd, "sad %s\n", PROTOCOLVERSION); } else { if (docmd(i) < 0) { close(i); diff --git a/sad.h b/sad.h @@ -1,5 +1,5 @@ #define LEN(x) (sizeof (x) / sizeof *(x)) -#define VERSION "0.0" +#define PROTOCOLVERSION "0.0" typedef struct { char *name;