From d1b4e1676fac18558ea543e2316bd2019591f852 Mon Sep 17 00:00:00 2001 From: octo Date: Fri, 14 Apr 2006 15:27:11 +0000 Subject: [PATCH] Fixing compile-warnings with braces in battery.c --- src/battery.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/battery.c b/src/battery.c index 61379e02..fa93b1c6 100644 --- a/src/battery.c +++ b/src/battery.c @@ -300,12 +300,16 @@ static void battery_read (void) &ps_value)) { if (CFGetTypeID (ps_value) != CFStringGetTypeID ()) + { if (!CFStringGetCString (ps_value, name, 128, kCFStringEncodingASCII)) continue; + } else + { DBG ("kIOPSNameKey: Not a CFStringGetTypeID"); + } DBG ("Original string: `%s'", name); } else -- 2.30.2