[Pkg-wmaker-commits] [wmbattery] 227/241: wmbattery: Remove unnecessary brace.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 23:38:04 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbattery.

commit 9c9f74de27095d94170f7399757a8bc0ab5b604b
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Wed May 13 23:38:57 2015 -0500

    wmbattery: Remove unnecessary brace.
    
    Fixes "Invalid number of character ({) when these macros are defined"
    errors given by cppcheck.
---
 simplehal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/simplehal.c b/simplehal.c
index 8647e4e..cf8531d 100644
--- a/simplehal.c
+++ b/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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbattery.git



More information about the Pkg-wmaker-commits mailing list