diff --git a/libasn1compiler/asn1c_C.c b/libasn1compiler/asn1c_C.c index 0f5cf2bfa5aa7cbb6f92ef8272c41e965036c3d2..0dd0a70f4ff43c2c755b5a035382ab38f0b78fa1 100644 --- a/libasn1compiler/asn1c_C.c +++ b/libasn1compiler/asn1c_C.c @@ -1765,7 +1765,7 @@ emit_alphabet_tables(arg_t *arg, asn1p_constraint_t *ct, int *table) { } } OUT("};\n"); - OUT("static int check_alphabet_%x(void *sptr) {\n", ct); + OUT("static int check_alphabet_%x(const void *sptr) {\n", ct); INDENT(+1); OUT("int *table = alphabet_table_%x;\n", ct); emit_alphabet_check_cycle(arg);