aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1compiler
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2004-06-03 04:35:44 +0000
committerLev Walkin <vlm@lionet.info>2004-06-03 04:35:44 +0000
commite3e4157cfc3f9c614ebc4916d18903de1c693f9a (patch)
tree9cee38ff84f92bf6536072ae17caedabf0d12148 /libasn1compiler
parent84291e0c7e98b1765fc54eaef95c450c1760bbb5 (diff)
const
Diffstat (limited to 'libasn1compiler')
-rw-r--r--libasn1compiler/asn1c_C.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libasn1compiler/asn1c_C.c b/libasn1compiler/asn1c_C.c
index 8ec476c6..0f5cf2bf 100644
--- a/libasn1compiler/asn1c_C.c
+++ b/libasn1compiler/asn1c_C.c
@@ -1364,7 +1364,7 @@ emit_constraint_checking_code(arg_t *arg) {
ACT_EL_VALUE);
if(size_present || value_present) {
- OUT("%s_t *st = sptr;\n", MKID(arg->expr->Identifier));
+ OUT("const %s_t *st = sptr;\n", MKID(arg->expr->Identifier));
if(size_present) {
OUT("size_t size;\n");
OUT("size_t min_size __attribute__ ((unused)) = %ld;\n",
@@ -1848,7 +1848,7 @@ emit_alphabet_check_cycle(arg_t *arg) {
OUT("/* The underlying type is %s */\n",
ASN_EXPR_TYPE2STR(etype));
- OUT("%s_t *st = sptr;\n", MKID(arg->expr->Identifier));
+ OUT("const %s_t *st = sptr;\n", MKID(arg->expr->Identifier));
switch(etype) {
case ASN_STRING_UTF8String: