diff options
author | Darren Tucker <dtucker@dtucker.net> | 2024-07-07 18:46:19 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2024-07-07 18:47:54 +1000 |
commit | b35a64dd7d5278af859ff8cca1fbe42d2c308ac0 (patch) | |
tree | b8403e5a76cf9adb40e27a401648c92c7be06ef7 | |
parent | 34f7a962f992a43e33b5b6e2dd71f1582433d551 (diff) |
Cast to sockaddr * in systemd interface.
Fixes build with musl libx. bz#3707.
-rw-r--r-- | openbsd-compat/port-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c index 4c024c6d..8adfec5a 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; } |