diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-09-07 15:41:46 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-09-07 15:41:46 +0200 |
| commit | f9e3516f5026babdea65e4cb6bb3756f0f8dd25a (patch) | |
| tree | 23c0037d9274e3225c7174d7c83a1c131b52342e /include | |
| parent | 11df321edaae2e0eae9603ea333cc19535b9eab6 (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 'include')
| -rw-r--r-- | include/slweb/handler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/slweb/handler.h b/include/slweb/handler.h index 4ac7f76..84a8073 100644 --- a/include/slweb/handler.h +++ b/include/slweb/handler.h @@ -19,6 +19,6 @@ struct handler *handler_alloc(const struct handler_cfg *cfg); void handler_free(struct handler *h); int handler_add(struct handler *h, const char *url, enum http_op op, handler_fn f, void *user); -int handler_listen(struct handler *h, short port); +int handler_listen(struct handler *h, unsigned short port); #endif /* HANDLER_H */ |
