From 1b7bbcc033ff0b44cfbd2fb7350262c65c15aa13 Mon Sep 17 00:00:00 2001 From: Emil Mikulic Date: Sat, 15 Jan 2011 20:31:34 +1100 Subject: [PATCH] Fix clang nits. --- darkhttpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/darkhttpd.c b/darkhttpd.c index 61b903c..f394640 100644 --- a/darkhttpd.c +++ b/darkhttpd.c @@ -929,7 +929,7 @@ static void parse_commandline(const int argc, char *argv[]) { if (strcmp(argv[i], "--port") == 0) { if (++i >= argc) errx(1, "missing number after --port"); - bindport = atoi(argv[i]); + bindport = (uint16_t)atoi(argv[i]); } else if (strcmp(argv[i], "--addr") == 0) { if (++i >= argc) @@ -1158,7 +1158,7 @@ static void strntoupper(char *str, const size_t length) { size_t i; for (i = 0; i < length; i++) - str[i] = toupper(str[i]); + str[i] = (char)toupper(str[i]); } /* If a connection has been idle for more than idletime seconds, it will be