mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 02:55:12 +00:00
Fix indenting of last commit
This commit is contained in:
parent
4ea99e27f1
commit
27a2a253a8
16
src/linux.c
16
src/linux.c
@ -884,14 +884,14 @@ static int open_sysfs_sensor(const char *dir, const char *dev, const char *type,
|
||||
fd = open(path, O_RDONLY);
|
||||
if (fd < 0) {
|
||||
|
||||
/* if it fails, strip the /device from dev and attempt again */
|
||||
buf[strlen(buf) - 7] = 0;
|
||||
snprintf(path, 255, "%s%s/%s%d_input", dir, dev, type, n);
|
||||
fd = open(path, O_RDONLY);
|
||||
if (fd < 0) {
|
||||
CRIT_ERR(NULL, NULL, "can't open '%s': %s\nplease check your device or remove this "
|
||||
"var from "PACKAGE_NAME, path, strerror(errno));
|
||||
}
|
||||
/* if it fails, strip the /device from dev and attempt again */
|
||||
buf[strlen(buf) - 7] = 0;
|
||||
snprintf(path, 255, "%s%s/%s%d_input", dir, dev, type, n);
|
||||
fd = open(path, O_RDONLY);
|
||||
if (fd < 0) {
|
||||
CRIT_ERR(NULL, NULL, "can't open '%s': %s\nplease check your device or remove this "
|
||||
"var from "PACKAGE_NAME, path, strerror(errno));
|
||||
}
|
||||
}
|
||||
|
||||
strncpy(devtype, path, 255);
|
||||
|
Loading…
Reference in New Issue
Block a user