summaryrefslogtreecommitdiff
path: root/src/helpers/SdDaemon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/SdDaemon.cpp')
-rw-r--r--src/helpers/SdDaemon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/SdDaemon.cpp b/src/helpers/SdDaemon.cpp
index 1cf15741..d914eecf 100644
--- a/src/helpers/SdDaemon.cpp
+++ b/src/helpers/SdDaemon.cpp
@@ -47,7 +47,7 @@ int NSystemd::sdNotify(int unsetEnvironment, const char* state) {
if (unixAddr.sun_path[0] == '@')
unixAddr.sun_path[0] = '\0';
- if (connect(fd, (const sockaddr*)&unixAddr, sizeof(struct sockaddr_un)) < 0)
+ if (connect(fd, rc<const sockaddr*>(&unixAddr), sizeof(struct sockaddr_un)) < 0)
return -errno;
// arbitrary value which seems to be enough for s-d messages