X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsmart.c;h=7b39aaee867c83f8d5fdaa3cbb18535f19e6f58b;hb=db35efb33e81d0a013e09a8a6ffa362ad5962f7c;hp=a9c563eab96ada1ee46031617370f946f1a264e9;hpb=a49ae41e44268b9972472e8355070c1299d18d5e;p=collectd.git diff --git a/src/smart.c b/src/smart.c index a9c563ea..7b39aaee 100644 --- 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 */ -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; @@ -253,7 +254,7 @@ static int smart_read (void) /* Query status with libatasmart */ smart_handle_disk (devpath); - udev_device_unref(dev); + udev_device_unref (dev); } udev_enumerate_unref (enumerate);