Formatting

SVN revision: 29155
This commit is contained in:
Sebastian Dransfeld 2007-03-25 22:06:33 +00:00
parent 16b0fb53e7
commit 7fec4f9c6a
1 changed files with 12 additions and 12 deletions

View File

@ -244,19 +244,19 @@ _temperature_sensor_init(Config_Face *inst)
char *name; char *name;
if ((name = ecore_list_next(therms))) if ((name = ecore_list_next(therms)))
{ {
if (ecore_file_exists(name)) if (ecore_file_exists(name))
{ {
int len; int len;
sprintf(path, "%s", ecore_file_get_file(name)); sprintf(path, "%s", ecore_file_get_file(name));
len = strlen(path); len = strlen(path);
if (len > 6) if (len > 6)
path[len - 6] = '\0'; path[len - 6] = '\0';
inst->sensor_type = SENSOR_TYPE_LINUX_I2C; inst->sensor_type = SENSOR_TYPE_LINUX_I2C;
inst->sensor_path = evas_stringshare_add(name); inst->sensor_path = evas_stringshare_add(name);
inst->sensor_name = evas_stringshare_add(path); inst->sensor_name = evas_stringshare_add(path);
} }
} }
ecore_list_destroy(therms); ecore_list_destroy(therms);
} }