Skip to content

Commit e5041e3

Browse files
committed
forkexecd: explicitly cast struct sockaddr_un to struct sockaddr
Signed-off-by: Sebastien Marie <[email protected]>
1 parent d17e4f2 commit e5041e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/forkexecd/test/syslog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static void vsyslog_internal(int priority, const char *format, va_list ap)
104104
struct sockaddr_un addr;
105105
addr.sun_family = AF_UNIX;
106106
strcpy(addr.sun_path, "/tmp/xyz");
107-
sendto(sock, buf, prefix_len + l, MSG_NOSIGNAL, &addr, sizeof(addr));
107+
sendto(sock, buf, prefix_len + l, MSG_NOSIGNAL, (struct sockaddr *)&addr, sizeof(addr));
108108

109109
close(sock);
110110
}

0 commit comments

Comments
 (0)