aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2020-05-31 18:22:11 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2020-05-31 18:22:11 +0200
commit30018d4fd7735b5117d42214f2921433cfdb0f26 (patch)
tree5c12211f9d78e8c2b782eddc03c9313599eb9f93 /src
parent7148db97bc3256b501ee42648b431b016472be7c (diff)
downloadblogc-30018d4fd7735b5117d42214f2921433cfdb0f26.tar.gz
blogc-30018d4fd7735b5117d42214f2921433cfdb0f26.tar.bz2
blogc-30018d4fd7735b5117d42214f2921433cfdb0f26.zip
runserver: replace u_int16_t with uint16_t
Diffstat (limited to 'src')
-rw-r--r--src/blogc-runserver/httpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blogc-runserver/httpd.c b/src/blogc-runserver/httpd.c
index 4dd4cad..ad6de19 100644
--- a/src/blogc-runserver/httpd.c
+++ b/src/blogc-runserver/httpd.c
@@ -237,7 +237,7 @@ br_httpd_get_ip(int af, const struct sockaddr *addr)
}
-static u_int16_t
+static uint16_t
br_httpd_get_port(int af, const struct sockaddr *addr)
{
in_port_t port = 0;
@@ -285,7 +285,7 @@ br_httpd_run(const char *host, const char *port, const char *docroot,
int ai_family = 0;
char *final_host = NULL;
- u_int16_t final_port = 0;
+ uint16_t final_port = 0;
for (rp = result; rp != NULL; rp = rp->ai_next) {
final_host = br_httpd_get_ip(rp->ai_family, rp->ai_addr);