Skip to content

Commit

Permalink
Cast to sockaddr * in systemd interface.
Browse files Browse the repository at this point in the history
Fixes build with musl libx.  bz#3707.
  • Loading branch information
daztucker committed Jul 7, 2024
1 parent 30c8c81 commit 8b664df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openbsd-compat/port-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8b664df

Please sign in to comment.