commands: enable, disable
* Peter Tarjan (ptarjan@citromail.hu) */
-void get_ibm_acpi_fan(struct text_object *obj, char *p, int p_max_size)
+int get_ibm_acpi_fan(struct text_object *obj, char *p, int p_max_size)
{
FILE *fp;
unsigned int speed = 0;
(void)obj;
if (!p || p_max_size <= 0) {
- return;
+ return 0;
}
snprintf(fan, 127, "%s/fan", IBM_ACPI_DIR);
fclose(fp);
snprintf(p, p_max_size, "%d", speed);
+ return 0;
}
/* get the measured temperatures from the temperature sensors