diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-11-08 16:36:51 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-11-08 16:36:51 -0800 |
commit | cea9cff30b79419b922c0682c7b46b73791870da (patch) | |
tree | 3363ba2da60a6a0993f4caf6c42bd600ca108703 /src/cli_path_utils.c | |
parent | 19a96d3659925167324c13fca597165b2181c641 (diff) | |
download | vyatta-cfg-cea9cff30b79419b922c0682c7b46b73791870da.tar.gz vyatta-cfg-cea9cff30b79419b922c0682c7b46b73791870da.zip |
* output error message if set/delete/commit fails.
* remove compiler warnings.
Diffstat (limited to 'src/cli_path_utils.c')
-rw-r--r-- | src/cli_path_utils.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cli_path_utils.c b/src/cli_path_utils.c index 4045516..84a2bc0 100644 --- a/src/cli_path_utils.c +++ b/src/cli_path_utils.c @@ -483,8 +483,7 @@ char *clind_unescape(const char *name) else if (*cp >='0' && *cp<='9') *rcp = (*cp-'0')*16; else { - printf("Bad escape in |%s|\n", name); - exit(-1); + bye("Bad escape in |%s|\n", name); } ++cp; if (*cp >='a' && *cp<='f') @@ -494,8 +493,7 @@ char *clind_unescape(const char *name) else if (*cp >='0' && *cp<='9') *rcp += (*cp-'0'); else { - printf("Bad escape in |%s|\n", name); - exit(-1); + bye("Bad escape in |%s|\n", name); } }else *rcp = *cp; |