Get the constness right.

This commit is contained in:
Emil Mikulic 2006-12-13 08:41:05 +00:00
parent 625dc5e473
commit 14d0ca9ac7

View File

@ -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]);