projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treewide: cleanup whitespace
[collectd.git]
/
src
/
smart.c
diff --git
a/src/smart.c
b/src/smart.c
index
3b113bd
..
7b39aae
100644
(file)
--- a/
src/smart.c
+++ b/
src/smart.c
@@
-68,7
+68,8
@@
static int smart_config (const char *key, const char *value)
return (0);
} /* int smart_config */
return (0);
} /* int smart_config */
-static void smart_submit (const char *dev, char *type, char *type_inst, double value)
+static void smart_submit (const char *dev, const char *type,
+ const char *type_inst, double value)
{
value_t values[1];
value_list_t vl = VALUE_LIST_INIT;
{
value_t values[1];
value_list_t vl = VALUE_LIST_INIT;
@@
-253,6
+254,7
@@
static int smart_read (void)
/* Query status with libatasmart */
smart_handle_disk (devpath);
/* Query status with libatasmart */
smart_handle_disk (devpath);
+ udev_device_unref (dev);
}
udev_enumerate_unref (enumerate);
}
udev_enumerate_unref (enumerate);