mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 08:28:20 +04:00
The `ssh_systemd_notify` function is causing compilation errors when built against GCC 14.1. This is due to an incompatible pointer type being passed to the connect function. The connect function expects a pointer to `struct sockaddr`, but was receiving a pointer to `struct sockaddr_un`. Signed-off-by: Sean Khan <datapronix@protonmail.com>
12 lines
396 B
Diff
12 lines
396 B
Diff
--- 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;
|
|
}
|