diff options
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fastd.c b/src/fastd.c index 8c58718..de3f2df 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -399,7 +399,7 @@ static inline void notify_systemd(void) { if (sa.sun_path[0] == '@') sa.sun_path[0] = 0; - if (connect(fd, (struct sockaddr*)&sa, offsetof(struct sockaddr_un, sun_path) + strnlen(notify_socket, sizeof(sa.sun_path))) < 0) { + if (connect(fd, (struct sockaddr *)&sa, offsetof(struct sockaddr_un, sun_path) + strnlen(notify_socket, sizeof(sa.sun_path))) < 0) { pr_debug_errno("unable to connect to notify socket: connect"); close(fd); return; |