summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-02-24 06:36:14 +0100
committerMax Kellermann <max@musicpd.org>2021-02-24 06:40:26 +0100
commita312629aad5174bd910ae99228b385f8692f471f (patch)
treec278fae71e7f2c4479e2ba196e19ddb399bed41f /test
parentd527d4b53076ab1889b6c0021875bf207c60350e (diff)
zeroconf: pass global port to init function
Diffstat (limited to 'test')
-rw-r--r--test/run_avahi.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/run_avahi.cxx b/test/run_avahi.cxx
index 547f8abdc..c41c90ca2 100644
--- a/test/run_avahi.cxx
+++ b/test/run_avahi.cxx
@@ -23,15 +23,13 @@
#include <stdlib.h>
-unsigned listen_port = 1234;
-
int
main([[maybe_unused]] int argc, [[maybe_unused]] char **argv)
{
EventLoop event_loop;
const ShutdownHandler shutdown_handler(event_loop);
- AvahiInit(event_loop, "test");
+ AvahiInit(event_loop, "test", 1234);
event_loop.Run();