Fixes "Invalid number of character ({) when these macros are defined" errors given by cppcheck. --- wmbattery/simplehal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wmbattery/simplehal.c b/wmbattery/simplehal.c index 8647e4e..cf8531d 100644 --- a/wmbattery/simplehal.c +++ b/wmbattery/simplehal.c @@ -200,7 +200,7 @@ int simplehal_read(int battery, apm_info *info) * required to be available; this is good enough */ if (info->battery_percentage < 1) info->battery_status = BATTERY_STATUS_CRITICAL; - else if (info->battery_percentage < 10) { + else if (info->battery_percentage < 10) info->battery_status = BATTERY_STATUS_LOW; } else if (info->ac_line_status && get_hal_bool(device, "battery.rechargeable.is_charging", 0) == 1) { -- 2.1.4 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.