From 0f8192a8fc2329141b6222315dd5712a132a647e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 29 Apr 2023 09:58:11 +0200 Subject: make struct server opaque --- src/server_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server_main.c') diff --git a/src/server_main.c b/src/server_main.c index 3d77ec8..4295b2d 100644 --- a/src/server_main.c +++ b/src/server_main.c @@ -87,7 +87,7 @@ static int parse_settings(struct settings *settings, int argc, char *argv[]) int main(int argc, char *argv[]) { struct settings settings; - struct server server; + struct server *server; int ret = 0; ret = parse_settings(&settings, argc, argv); @@ -98,12 +98,12 @@ int main(int argc, char *argv[]) if (ret < 0) return ret; - ret = server_main(&server); + ret = server_main(server); if (ret < 0) goto destroy_server; destroy_server: - server_destroy(&server); + server_destroy(server); return ret; } -- cgit v1.2.3