summaryrefslogtreecommitdiffstats
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2024-07-07 10:46:19 +0200
committerDarren Tucker <dtucker@dtucker.net>2024-07-07 10:46:19 +0200
commit8b664df75966e5aed8dabea00b8838303d3488b8 (patch)
treef3b277d6add9897b4fba9684f20091a9178b8fb4 /openbsd-compat
parentAdd 9.8 branch to ci-status page. (diff)
downloadopenssh-8b664df75966e5aed8dabea00b8838303d3488b8.tar.xz
openssh-8b664df75966e5aed8dabea00b8838303d3488b8.zip
Cast to sockaddr * in systemd interface.
Fixes build with musl libx. bz#3707.
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/port-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c
index 4c024c6d2..8adfec5a7 100644
--- a/openbsd-compat/port-linux.c
+++ b/openbsd-compat/port-linux.c
@@ -366,7 +366,7 @@ ssh_systemd_notify(const char *fmt, ...)
error_f("socket \"%s\": %s", path, strerror(errno));
goto out;
}
- if (connect(fd, &addr, sizeof(addr)) != 0) {
+ if (connect(fd, (struct sockaddr *)&addr, sizeof(addr)) != 0) {
error_f("socket \"%s\" connect: %s", path, strerror(errno));
goto out;
}