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 61379e0..fa93b1c 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