From 80c5999a5a5d7fd120c733ef541ca7338fd4ff42 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Wed, 26 Oct 2022 22:38:19 +0200 Subject: [PATCH] Declare disconnect_client function in header file --- src/server.c | 1 + src/server.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/server.c b/src/server.c index 81cf2e5..69a1f59 100644 --- a/src/server.c +++ b/src/server.c @@ -179,6 +179,7 @@ int get_next_free_client_id(void) { return -1; // Error: reached end of array } +/* Disconnect a client using its client id */ int disconnect_client(int client_id) { void *retval; diff --git a/src/server.h b/src/server.h index 341e737..70f56c5 100644 --- a/src/server.h +++ b/src/server.h @@ -19,6 +19,9 @@ int handle_args(int, char**); /* Compute the next free client_id in the client array */ int get_next_free_client_id(void); +/* Disconnect a client using its client id */ +int disconnect_client(int); + /* Thread, parses and handles messages */ void *Dispatcher(void*);