Skip to content

Commit a8b64af

Browse files
committed
Fix clang compiler warning Wknr-promoted-parameter
K&R style declarations apparently have different rules about default argument promotions. https://stackoverflow.com/questions/17193395/error-using-kr-style-function-definition
1 parent 0602d1e commit a8b64af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libhttpd/protocol.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,7 @@ int outbufsize;
256256
}
257257

258258
char
259-
_httpd_from_hex(c)
260-
char c;
259+
_httpd_from_hex(char c)
261260
{
262261
return c >= '0' && c <= '9' ? c - '0' : c >= 'A' && c <= 'F' ? c - 'A' + 10 : c - 'a' + 10; /* accept small letters just in case */
263262
}

0 commit comments

Comments
 (0)