From: Juho Vähä-Herttua Date: Sun, 14 Apr 2013 18:58:26 +0000 (+0300) Subject: Make the password option work on shairplay CLI X-Git-Tag: upstream/0.9.0~4^2~23 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c6e5e8b92e81690133d2f51237fb90c1668bd146;p=deb_shairplay.git Make the password option work on shairplay CLI --- diff --git a/src/shairplay.c b/src/shairplay.c index 691b24f..bf269ef 100644 --- a/src/shairplay.c +++ b/src/shairplay.c @@ -285,6 +285,7 @@ main(int argc, char *argv[]) dnssd_t *dnssd; raop_t *raop; raop_callbacks_t raop_cbs; + char *password = NULL; int error; @@ -322,8 +323,11 @@ main(int argc, char *argv[]) return -1; } + if (strlen(options.password)) { + password = options.password; + } raop_set_log_level(raop, RAOP_LOG_DEBUG); - raop_start(raop, &options.port, hwaddr, sizeof(hwaddr), NULL); + raop_start(raop, &options.port, hwaddr, sizeof(hwaddr), password); error = 0; dnssd = dnssd_init(&error);