From 2e31a3d4f3c8a773e538c407c47e8153cf845d4b Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Thu, 22 Dec 2022 15:02:17 +0100 Subject: [PATCH] [misc] 'unsigned short' instead of 'short unsigned' as arg to net_evhttp_bind() --- src/misc.c | 2 +- src/misc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc.c b/src/misc.c index 2a145988..3acd732b 100644 --- a/src/misc.c +++ b/src/misc.c @@ -375,7 +375,7 @@ net_bind(short unsigned *port, int type, const char *log_service_name) } int -net_evhttp_bind(struct evhttp *evhttp, short unsigned port, const char *log_service_name) +net_evhttp_bind(struct evhttp *evhttp, unsigned short port, const char *log_service_name) { const char *bind_address; bool v6_enabled; diff --git a/src/misc.h b/src/misc.h index 982462f8..60455415 100644 --- a/src/misc.h +++ b/src/misc.h @@ -55,7 +55,7 @@ int net_bind(short unsigned *port, int type, const char *log_service_name); int -net_evhttp_bind(struct evhttp *evhttp, short unsigned port, const char *log_service_name); +net_evhttp_bind(struct evhttp *evhttp, unsigned short port, const char *log_service_name); // Just checks if the protocol is http or https bool