mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-01-30 13:42:01 +00:00
Cast to sockaddr * in systemd interface.
Fixes build with musl libx. bz#3707.
This commit is contained in:
parent
30c8c81da2
commit
8b664df759
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user