aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/server.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-04-28 12:58:42 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-04-29 09:57:16 +0200
commit37895358b03b805f1887749c8dc73d1e075af810 (patch)
treee1cc37f8f6ea6dc2b5de229a8f80dc5052fd25af /src/server.c
parentdocker-compose.yml: exit from client painlessly (diff)
downloadcimple-37895358b03b805f1887749c8dc73d1e075af810.tar.gz
cimple-37895358b03b805f1887749c8dc73d1e075af810.zip
make struct tcp_server opaque
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.c b/src/server.c
index a158b81..933a3b7 100644
--- a/src/server.c
+++ b/src/server.c
@@ -74,7 +74,7 @@ void server_destroy(struct server *server)
log("Shutting down\n");
ci_queue_destroy(&server->ci_queue);
- tcp_server_destroy(&server->tcp_server);
+ tcp_server_destroy(server->tcp_server);
storage_destroy(&server->storage);
pthread_errno_if(pthread_cond_destroy(&server->server_cv), "pthread_cond_destroy");
pthread_errno_if(pthread_mutex_destroy(&server->server_mtx), "pthread_mutex_destroy");
@@ -363,7 +363,7 @@ int server_main(struct server *server)
while (!global_stop_flag) {
log("Waiting for new connections\n");
- ret = tcp_server_accept(&server->tcp_server, server_conn_handler, server);
+ ret = tcp_server_accept(server->tcp_server, server_conn_handler, server);
if (ret < 0)
break;
}