if (IPMI_IS_OS_ERR (status))
{
- sstrerror_r (IPMI_GET_OS_ERR (status), errbuf, sizeof (errbuf));
+ sstrerror (IPMI_GET_OS_ERR (status), errbuf, sizeof (errbuf));
}
else if (IPMI_IS_IPMI_ERR (status))
{
sstrncpy (vl.host, hostname_g, sizeof (vl.host));
sstrncpy (vl.plugin, "ipmi", sizeof (vl.plugin));
+ sstrncpy (vl.type, type, sizeof (vl.type));
sstrncpy (vl.type_instance, sensor_name_ptr, sizeof (vl.type_instance));
- plugin_dispatch_values (type, &vl);
+ plugin_dispatch_values (&vl);
} /* void sensor_read_handler */
static int sensor_list_add (ipmi_sensor_t *sensor)