[waffle] [PATCH 05/13] wcore: indent with spaces, not tabs
Emil Velikov
emil.l.velikov at gmail.com
Tue Apr 5 21:58:18 UTC 2016
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/waffle/core/wcore_config_attrs.c | 32 +++++++++++++++-----------------
1 file changed, 15 insertions(+), 17 deletions(-)
diff --git a/src/waffle/core/wcore_config_attrs.c b/src/waffle/core/wcore_config_attrs.c
index bb38fed..8f362a9 100644
--- a/src/waffle/core/wcore_config_attrs.c
+++ b/src/waffle/core/wcore_config_attrs.c
@@ -77,27 +77,25 @@ check_keys(const int32_t attrib_list[])
}
static bool
-parse_bool(const int32_t attrib_list[],
- int32_t attrib_name,
- bool *value,
- bool default_value)
+parse_bool(const int32_t attrib_list[], int32_t attrib_name,
+ bool *value, bool default_value)
{
- int32_t raw_value;
+ int32_t raw_value;
- wcore_attrib_list32_get_with_default(attrib_list, attrib_name,
+ wcore_attrib_list32_get_with_default(attrib_list, attrib_name,
&raw_value, default_value);
- if (raw_value == WAFFLE_DONT_CARE) {
- *value = default_value;
- } else if (raw_value == true || raw_value == false) {
- *value = raw_value;
- } else {
- wcore_errorf(WAFFLE_ERROR_BAD_ATTRIBUTE,
- "%s has bad value 0x%x. "
- "Must be true(1), false(0), or WAFFLE_DONT_CARE(-1)",
- wcore_enum_to_string(attrib_name), raw_value);
- return false;
- }
+ if (raw_value == WAFFLE_DONT_CARE) {
+ *value = default_value;
+ } else if (raw_value == true || raw_value == false) {
+ *value = raw_value;
+ } else {
+ wcore_errorf(WAFFLE_ERROR_BAD_ATTRIBUTE,
+ "%s has bad value 0x%x. "
+ "Must be true(1), false(0), or WAFFLE_DONT_CARE(-1)",
+ wcore_enum_to_string(attrib_name), raw_value);
+ return false;
+ }
return true;
}
--
2.8.0
More information about the waffle
mailing list