mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Fix clang nits.
This commit is contained in:
parent
11bb4d8906
commit
1b7bbcc033
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user