projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
601abec
)
Fixing compile-warnings with braces in battery.c
author
octo
<octo>
Fri, 14 Apr 2006 15:27:11 +0000
(15:27 +0000)
committer
octo
<octo>
Fri, 14 Apr 2006 15:27:11 +0000
(15:27 +0000)
src/battery.c
patch
|
blob
|
history
diff --git
a/src/battery.c
b/src/battery.c
index
61379e0
..
fa93b1c
100644
(file)
--- 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