Cast to sockaddr * in systemd interface.

Fixes build with musl libx.  bz#3707.
This commit is contained in:
Darren Tucker 2024-07-07 18:46:19 +10:00
parent 30c8c81da2
commit 8b664df759
No known key found for this signature in database

View File

@ -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;
}