zeroconf: pass global port to init function
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user