zeroconf: pass global port to init function

This commit is contained in:
Max Kellermann
2021-02-24 06:36:14 +01:00
parent d527d4b530
commit a312629aad
6 changed files with 9 additions and 13 deletions

View File

@@ -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();