EAP windows crosscompile failed
../src/eap.c: In function ‘eap_start’:
../src/eap.c:499:24: error: pointer targets in passing argument 2 of ‘sendto’ differ in signedness [-Werror=pointer-sign]
499 | sendto(ctx->peer->sd, outpkt, (sizeof(*gre) + sizeof(*eapol)), 0, &ctx->peer->u.address, ctx->peer->address_len);
| ^~~~~~
| |
| uint8_t * {aka unsigned char *}
In file included from ../contrib/endian-shim.h:11,
from ../src/eap.c:2:
/usr/share/mingw-w64/include/winsock2.h:1028:62: note: expected ‘const char *’ but argument is of type ‘uint8_t *’ {aka ‘unsigned char *’}
1028 | WINSOCK_API_LINKAGE int WSAAPI sendto(SOCKET s,const char *buf,int len,int flags,const struct sockaddr *to,int tolen);
| ~~~~~~~~~~~~^~~
../src/eap.c: In function ‘eap_periodic’:
../src/eap.c:594:29: error: pointer targets in passing argument 2 of ‘sendto’ differ in signedness [-Werror=pointer-sign]
594 | sendto(ctx->peer->sd, ctx->last_pkt, ctx->last_pkt_size, 0, &ctx->peer->u.address, ctx->peer->address_len);
| ~~~^~~~~~~~~~
| |
| uint8_t * {aka unsigned char *}
Edited by Gijs Peskens