From: octo Date: Fri, 14 Apr 2006 15:27:11 +0000 (+0000) Subject: Fixing compile-warnings with braces in battery.c X-Git-Tag: liboping-0.1.0~92 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d1b4e1676fac18558ea543e2316bd2019591f852;p=collectd.git Fixing compile-warnings with braces in battery.c --- 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