diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-09-04 14:58:58 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-09-04 14:58:58 -0700 |
commit | a709a7b68575139c37ae203d379d2bc93f330dbd (patch) | |
tree | 1e93d9d9ce303d9b1f5d07716c5a0d949fb5345c /src | |
parent | 6eb8e60b0a53c21cfbc2996a1d7faa1dcc29e9f2 (diff) | |
download | vyatta-cfg-a709a7b68575139c37ae203d379d2bc93f330dbd.tar.gz vyatta-cfg-a709a7b68575139c37ae203d379d2bc93f330dbd.zip |
Fix build warnings
Get rid of warnings for
push_path discards qualifiers from pointer target type.
Diffstat (limited to 'src')
-rw-r--r-- | src/cli_new.c | 6 | ||||
-rw-r--r-- | src/cli_val.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cli_new.c b/src/cli_new.c index 83cc150..0eed12b 100644 --- a/src/cli_new.c +++ b/src/cli_new.c @@ -1776,10 +1776,10 @@ void warrant_path(vtw_path *path, int len) /***************************************************** push_path - extend path by '/' and one new segment *****************************************************/ -void push_path(vtw_path *path, char *segm) +void push_path(vtw_path *path, const char *segm) { int len; - char *cp; + const char *cp; char *pp; for(cp=segm, len=0;*cp;++cp, ++len) @@ -1807,7 +1807,7 @@ void push_path(vtw_path *path, char *segm) if (path->path_lev == path->path_ends_alloc){ path->path_ends_alloc += ENDS_ALLOC; path->path_ends = (int *)my_realloc(path->path_ends, - sizeof(int *)*path->path_ends_alloc, "puhs_path 2"); + sizeof(int *)*path->path_ends_alloc, "push_path 2"); } path->path_ends[path->path_lev++] = path->path_len; // push_path_no_escape(); diff --git a/src/cli_val.h b/src/cli_val.h index 5abaaee..a753c92 100644 --- a/src/cli_val.h +++ b/src/cli_val.h @@ -152,7 +152,7 @@ extern void cli_val_start(char *s); extern void cli_val_done(void); extern void init_path(vtw_path *path, const char *root); extern void pop_path(vtw_path *path); -extern void push_path(vtw_path *path, char *segm); +extern void push_path(vtw_path *path, const char *segm); extern void push_path_no_escape(vtw_path *path, char *segm); extern void free_def(vtw_def *defp); extern void free_sorted(vtw_sorted *sortp); |