Code

Fixing compile-warnings with braces in battery.c
authorocto <octo>
Fri, 14 Apr 2006 15:27:11 +0000 (15:27 +0000)
committerocto <octo>
Fri, 14 Apr 2006 15:27:11 +0000 (15:27 +0000)
src/battery.c

index 61379e0209bc38528df7cfe909ac07e4875e13bd..fa93b1c66a6b81903fe4f53a63925176590cdb33 100644 (file)
@@ -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