aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/server_main.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-04-29 09:58:11 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-04-29 09:58:11 +0200
commit0f8192a8fc2329141b6222315dd5712a132a647e (patch)
tree7914e09d5015064f8f55f0a5b65337c2c437d342 /src/server_main.c
parentmake struct tcp_server opaque (diff)
downloadcimple-0f8192a8fc2329141b6222315dd5712a132a647e.tar.gz
cimple-0f8192a8fc2329141b6222315dd5712a132a647e.zip
make struct server opaque
Diffstat (limited to 'src/server_main.c')
-rw-r--r--src/server_main.c6
1 files changed, 3 insertions, 3 deletions
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;
}