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 34f7a962f9
commit b35a64dd7d
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

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