cli_show_option_bool: Rename bool -> result
bool will conflict with boolean type if stdbool.h is included. No functional changes intended.
This commit is contained in:
parent
d7d81fbd13
commit
a773384ccc
2 changed files with 8 additions and 8 deletions
|
|
@ -591,14 +591,14 @@ cli_show_option_format(cvec *argv,
|
||||||
*
|
*
|
||||||
* @param[in] argv String vector: <dbname> <format> <xpath> [<varname>]
|
* @param[in] argv String vector: <dbname> <format> <xpath> [<varname>]
|
||||||
* @param[in] argc Index into argv
|
* @param[in] argc Index into argv
|
||||||
* @param[out] bool result boolean: 0 or 1
|
* @param[out] result result boolean: 0 or 1
|
||||||
* @retval 0 OK
|
* @retval 0 OK
|
||||||
* @retval -1 Error
|
* @retval -1 Error
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
cli_show_option_bool(cvec *argv,
|
cli_show_option_bool(cvec *argv,
|
||||||
int argc,
|
int argc,
|
||||||
int *bool
|
int *result
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int retval = -1;
|
int retval = -1;
|
||||||
|
|
@ -614,7 +614,7 @@ cli_show_option_bool(cvec *argv,
|
||||||
clicon_err(OE_UNIX, errno, "Parse boolean %s", boolstr);
|
clicon_err(OE_UNIX, errno, "Parse boolean %s", boolstr);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
*bool = cv_bool_get(boolcv);
|
*result = cv_bool_get(boolcv);
|
||||||
retval = 0;
|
retval = 0;
|
||||||
done:
|
done:
|
||||||
if (boolcv)
|
if (boolcv)
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ int cli_show_common(clicon_handle h, char *db, enum format_enum format, int pret
|
||||||
int show_yang(clicon_handle h, cvec *vars, cvec *argv);
|
int show_yang(clicon_handle h, cvec *vars, cvec *argv);
|
||||||
int show_conf_xpath(clicon_handle h, cvec *cvv, cvec *argv);
|
int show_conf_xpath(clicon_handle h, cvec *cvv, cvec *argv);
|
||||||
int cli_show_option_format(cvec *argv, int argc, enum format_enum *format);
|
int cli_show_option_format(cvec *argv, int argc, enum format_enum *format);
|
||||||
int cli_show_option_bool(cvec *argv, int argc, int *bool);
|
int cli_show_option_bool(cvec *argv, int argc, int *result);
|
||||||
int cli_show_option_withdefault(cvec *argv, int argc, char **withdefault, char **extdefault);
|
int cli_show_option_withdefault(cvec *argv, int argc, char **withdefault, char **extdefault);
|
||||||
int cli_show_config(clicon_handle h, cvec *cvv, cvec *argv);
|
int cli_show_config(clicon_handle h, cvec *cvv, cvec *argv);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue