diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-05-11 22:50:19 -0700 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2024-05-16 08:35:54 -0700 |
commit | c17897deb52daab300c585a6a6c2456d062d80cf (patch) | |
tree | 152c68498ed4dc291bc6d27d531f6133c27714ac /dmi.h | |
parent | 23c24878c2e004f360575d564b825753212a09e5 (diff) | |
download | mcelog-master.tar.gz |
connect() function expects the second argument to be point to sockaddr
as per man sockaddr
int connect (int, const struct sockaddr *, socklen_t);
Fixes build failures with -Wincompatible-pointer-types when using GCC-14
and musl
Fixes
| server.c: In function 'server_ping':
| server.c:308:33: error: passing argument 2 of 'connect' from incompatible pointer type [-Wincompatible-pointer-types]
| 308 | if (connect(fd, un, sizeof(struct sockaddr_un)) < 0)
| | ^~
| | |
| | struct sockaddr_un *
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'dmi.h')
0 files changed, 0 insertions, 0 deletions