diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-05-31 16:22:48 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-05-31 16:22:48 -0700 |
commit | 84c9b55a994cacbd5395c9ed2c5bf85834e60c13 (patch) | |
tree | c5e085208786242ee606efb9aafe4fda1108dca7 /src | |
parent | 1bedfe2b2d60583aac2d8a10c0678602045dc64f (diff) | |
download | vyatta-cfg-84c9b55a994cacbd5395c9ed2c5bf85834e60c13.tar.gz vyatta-cfg-84c9b55a994cacbd5395c9ed2c5bf85834e60c13.zip |
add constness to parse_def
Diffstat (limited to 'src')
-rw-r--r-- | src/cli_parse.y | 4 | ||||
-rw-r--r-- | src/cli_val.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/cli_parse.y b/src/cli_parse.y index 107b874..318394b 100644 --- a/src/cli_parse.y +++ b/src/cli_parse.y @@ -241,8 +241,8 @@ syntax_error: SYNTAX_ERROR { %% -char *parse_path; -int parse_def(vtw_def *defp, char *path, boolean type_only) +const char *parse_path; +int parse_def(vtw_def *defp, const char *path, boolean type_only) { int status; /* always zero vtw_def struct */ diff --git a/src/cli_val.h b/src/cli_val.h index 19aca5a..b8a30ba 100644 --- a/src/cli_val.h +++ b/src/cli_val.h @@ -156,7 +156,7 @@ extern vtw_node *make_str_node(char *str); extern vtw_node *make_var_node(char *str); extern vtw_node *make_str_node0(char *str, vtw_oper_e op); extern void append(vtw_list *l, vtw_node *n, int aux); -extern int parse_def(vtw_def *defp, char *path, boolean type_only); +extern int parse_def(vtw_def *defp, const char *path, boolean type_only); extern int yy_cli_val_lex(void); extern void cli_val_start(char *s); |