summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/expr.c
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2010-12-20 16:06:44 +0100
committerMichal Marek <mmarek@suse.cz>2010-12-21 17:59:16 +0100
commit17742dc743716eebbf5892add0e0bf91f541fc39 (patch)
treea59b7e4bf8e1a23c6f28410bd0dd941125a68c8a /scripts/kconfig/expr.c
parent1137c56b7420c801147e0863845c03b07554721a (diff)
downloadop-kernel-dev-17742dc743716eebbf5892add0e0bf91f541fc39.zip
op-kernel-dev-17742dc743716eebbf5892add0e0bf91f541fc39.tar.gz
kconfig: Make expr_copy() take a const argument
Fixes scripts/kconfig/expr.c: In function ‘expr_get_leftmost_symbol’: scripts/kconfig/expr.c:1026:2: warning: passing argument 1 of ‘expr_copy’ discards qualifiers from pointer target type scripts/kconfig/expr.c:67:14: note: expected ‘struct expr *’ but argument is of type ‘const struct expr *’ Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig/expr.c')
-rw-r--r--scripts/kconfig/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/expr.c b/scripts/kconfig/expr.c
index 65531a7..0010034 100644
--- a/scripts/kconfig/expr.c
+++ b/scripts/kconfig/expr.c
@@ -64,7 +64,7 @@ struct expr *expr_alloc_or(struct expr *e1, struct expr *e2)
return e2 ? expr_alloc_two(E_OR, e1, e2) : e1;
}
-struct expr *expr_copy(struct expr *org)
+struct expr *expr_copy(const struct expr *org)
{
struct expr *e;
OpenPOWER on IntegriCloud