fix types for const pointers

- const char * -> const(char)*