aboutsummaryrefslogtreecommitdiff
path: root/libseat/backend
diff options
context:
space:
mode:
Diffstat (limited to 'libseat/backend')
-rw-r--r--libseat/backend/seatd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libseat/backend/seatd.c b/libseat/backend/seatd.c
index b0e023f..1259308 100644
--- a/libseat/backend/seatd.c
+++ b/libseat/backend/seatd.c
@@ -67,9 +67,9 @@ static int seatd_connect(void) {
close(fd);
return -1;
}
- char *path = getenv("SEATD_SOCK");
+ const char *path = getenv("SEATD_SOCK");
if (path == NULL) {
- path = "/run/seatd.sock";
+ path = SEATD_DEFAULTPATH;
}
addr.unix.sun_family = AF_UNIX;
strncpy(addr.unix.sun_path, path, sizeof addr.unix.sun_path);