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/cli_new.c | |
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/cli_new.c')
-rw-r--r-- | src/cli_new.c | 6 |
1 files changed, 3 insertions, 3 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(); |