diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-25 18:51:33 +0000 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-25 23:00:16 +0000 | 
| commit | d8729f8cb55d118c1937b7d001d70d6ea4476e52 (patch) | |
| tree | 0890eb18b74ac62411e8a991d0db2d1579042a46 /lib/yang_wrappers.c | |
| parent | 4923d6ed9822deae74aa71775337a8f1b51da3ec (diff) | |
*: use proper bool initializers & fix comparisons
- bools should be initialized with true/false
- bools do not need to be compared
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/yang_wrappers.c')
| -rw-r--r-- | lib/yang_wrappers.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yang_wrappers.c b/lib/yang_wrappers.c index 6273dff3ce..7ecea5f445 100644 --- a/lib/yang_wrappers.c +++ b/lib/yang_wrappers.c @@ -62,7 +62,7 @@ bool yang_str2bool(const char *value)  struct yang_data *yang_data_new_bool(const char *xpath, bool value)  { -	return yang_data_new(xpath, (value == true) ? "true" : "false"); +	return yang_data_new(xpath, (value) ? "true" : "false");  }  bool yang_dnode_get_bool(const struct lyd_node *dnode, const char *xpath_fmt,  | 
