mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Get the constness right.
This commit is contained in:
parent
625dc5e473
commit
14d0ca9ac7
@ -26,7 +26,7 @@ test(const char *input, const char *expected)
|
||||
free(tmp);
|
||||
}
|
||||
|
||||
static char * const tests[] = {
|
||||
static char const *tests[] = {
|
||||
"/", "/",
|
||||
"/.", "/",
|
||||
"/./", "/",
|
||||
@ -52,9 +52,9 @@ static char * const tests[] = {
|
||||
};
|
||||
|
||||
int
|
||||
main()
|
||||
main(void)
|
||||
{
|
||||
char * const *curr = tests;
|
||||
const char **curr = tests;
|
||||
|
||||
while (curr[0] != NULL) {
|
||||
test(curr[0], curr[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user