aboutsummaryrefslogtreecommitdiff
path: root/handler.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-09-07 15:41:46 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-09-07 15:41:46 +0200
commitf9e3516f5026babdea65e4cb6bb3756f0f8dd25a (patch)
tree23c0037d9274e3225c7174d7c83a1c131b52342e /handler.c
parent11df321edaae2e0eae9603ea333cc19535b9eab6 (diff)
handler: Define port as unsigned short
Port numbers are unsigned by definition. Fortunately, this was a minor issues since server_init was doing an implicit cast to unsigned short.
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/handler.c b/handler.c
index f29da15..49b9af9 100644
--- a/handler.c
+++ b/handler.c
@@ -181,7 +181,7 @@ end:
return ret;
}
-int handler_listen(struct handler *const h, const short port)
+int handler_listen(struct handler *const h, const unsigned short port)
{
if (!(h->server = server_init(port)))
{