Commit c2d5b23a authored by Maxime Perrotin's avatar Maxime Perrotin

Fix regression with const in RI declarations

parent 1d30fb5d
......@@ -211,7 +211,7 @@ void add_RI_to_C_gw(Interface * i)
});
FOREACH (p, Parameter, i->out, {
fprintf(user_code_h,"%sconst asn1Scc%s *",
fprintf(user_code_h,"%sasn1Scc%s *",
comma? sep: "",
p->type);
comma = true;
......
......@@ -1193,7 +1193,7 @@ void List_C_Types_And_Params_With_Pointers(Parameter * p, FILE ** file)
fprintf(*file, "%s%sasn1Scc%s *%s_%s",
comma ? ", " : "",
(param_in == p->param_direction) ? "" : "",
(param_in == p->param_direction) ? "const " : "",
p->type,
(param_in == p->param_direction) ? "IN" : "OUT", p->name);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment