Commit: 92a698f3a164c06c5e54dd04df32d7ea85fd64ad
Parent: ddd430a2a4882d29bc97c767adbf286e341fa2f0
Author: Randy Palamar
Date: Mon, 27 Feb 2023 09:00:55 -0700
blight.c: update to match last commit
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/blocks/linux/blight.c b/blocks/linux/blight.c
@@ -14,11 +14,11 @@ blight(struct Block *b)
int perc;
unsigned long max, now;
- snprintf(path, sizeof(path), "/sys/class/backlight/%s/brightness", b->u.s);
+ snprintf(path, sizeof(path), "/sys/class/backlight/%s/brightness", (char *)b->arg);
if (pscanf(path, "%lu", &now) != 1)
now = 0;
- snprintf(path, sizeof(path), "/sys/class/backlight/%s/max_brightness", b->u.s);
+ snprintf(path, sizeof(path), "/sys/class/backlight/%s/max_brightness", (char *)b->arg);
if (pscanf(path, "%lu", &max) != 1)
/* avoid divison by 0 */
max = 1;