"as bug."
#endif
-featurelist_t *first_feature = NULL;
+static featurelist_t *first_feature = NULL;
static ignorelist_t *sensor_list;
#if SENSORS_API_VERSION < 0x400
return (0);
}
-void sensors_free_features (void)
+static void sensors_free_features (void)
{
featurelist_t *thisft;
featurelist_t *nextft;
continue;
}
- fl = (featurelist_t *) malloc (sizeof (featurelist_t));
+ fl = malloc (sizeof (*fl));
if (fl == NULL)
{
ERROR ("sensors plugin: malloc failed.");
&& (subfeature->type != SENSORS_SUBFEATURE_POWER_INPUT))
continue;
- fl = (featurelist_t *) malloc (sizeof (featurelist_t));
+ fl = malloc (sizeof (*fl));
if (fl == NULL)
{
ERROR ("sensors plugin: malloc failed.");