Skip to content

Commit 61f4564

Browse files
committed
plugins exts REFACTOR avoid changing const vars
Fixes #2469
1 parent 3981526 commit 61f4564

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/plugins_exts.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ lys_compile_ext_instance_stmt(struct lysc_ctx *ctx, void **parsed_p, struct lysc
153153
case LY_STMT_LEAF_LIST:
154154
case LY_STMT_LIST:
155155
case LY_STMT_USES: {
156-
const uint16_t flags;
156+
uint16_t flags;
157157
struct lysp_node *pnodes, *pnode;
158158
struct lysc_node *node;
159159

@@ -231,7 +231,7 @@ lys_compile_ext_instance_stmt(struct lysc_ctx *ctx, void **parsed_p, struct lysc
231231
break;
232232
}
233233
case LY_STMT_WHEN: {
234-
const uint16_t flags;
234+
uint16_t flags;
235235
const struct lysp_when *when = *parsed_p;
236236

237237
/* read compiled status */
@@ -288,7 +288,7 @@ lys_compile_ext_instance_stmt(struct lysc_ctx *ctx, void **parsed_p, struct lysc
288288
break;
289289

290290
case LY_STMT_TYPE: {
291-
const uint16_t flags;
291+
uint16_t flags;
292292
const char *units;
293293
const struct lysp_type *ptype = *parsed_p;
294294

0 commit comments

Comments
 (0)