aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-03-07 12:41:03 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-03-07 12:41:03 +0100
commit0954abcf098efbf2c73373a49c7fe26a5effcfcb (patch)
treec895f6253fbb37c248635d80f7689e35bd813e2b
parent0ca8ea19bcd965233ac4195c285141349fc08855 (diff)
downloadslcl-0954abcf098efbf2c73373a49c7fe26a5effcfcb.tar.gz
server.c: Minor const-correctness improvement
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index f00a37c..911127d 100644
--- a/server.c
+++ b/server.c
@@ -44,7 +44,7 @@ int server_client_close(struct server *const s, struct server_client *const c)
for (size_t i = 0; i < s->n; i++)
{
- struct server_client *ref = &s->c[i];
+ struct server_client *const ref = &s->c[i];
if (c == ref)
{