aboutsummaryrefslogtreecommitdiff
path: root/src/luxinit.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-11-17 12:36:12 +0100
committerThomas Voss <mail@thomasvoss.com> 2022-11-17 12:36:12 +0100
commit5eece7e783e177e6fcf7ed4a7185d180f9fc5565 (patch)
tree20c2c866c9fbf14e23ceb6d204d6264d8c33552c /src/luxinit.c
parent63ad1fe1902222d923ba407ce891974df9ccdd0b (diff)
Use LIBLUX_ as a macro prefix
Diffstat (limited to 'src/luxinit.c')
-rw-r--r--src/luxinit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/luxinit.c b/src/luxinit.c
index 949f3a2..55151b4 100644
--- a/src/luxinit.c
+++ b/src/luxinit.c
@@ -48,14 +48,14 @@ getdir(void)
DIR *dir;
/* To get the file descriptor for the directory where all the brightness
- * files are located, we first need to open LUX_BACKLIGHT_DIR which is
- * the directory where the backlight directories are located. Then we
- * need to get a DIR* of that directory and get the 3rd entry. We need
- * the third because the fist and second are the . and .. folders.
+ * files are located, we first need to open LIBLUX_BACKLIGHT_DIR which
+ * is the directory where the backlight directories are located. Then
+ * we need to get a DIR* of that directory and get the 3rd entry. We
+ * need the third because the fist and second are the . and .. folders.
* Finally we open the folder so that we have a file descriptor we can
* return.
*/
- if ((dfd = open(LUX_BACKLIGHT_DIR, O_RDONLY)) == -1)
+ if ((dfd = open(LIBLUX_BACKLIGHT_DIR, O_RDONLY)) == -1)
return -1;
if ((dir = fdopendir(dfd)) == NULL) {
close(dfd);