X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Finvitation.c;h=dff8d5fe6306ab5d1052e03a57423145a91b7f84;hp=28f9f8ce0755468f8c4abea0f9cc07e016011900;hb=107d9c7da5b206425a8e1643a6849ea990f725f8;hpb=3df86ef17bce9f24c3dad79ccc2b17aa6e93ea34 diff --git a/src/invitation.c b/src/invitation.c index 28f9f8ce..dff8d5fe 100644 --- a/src/invitation.c +++ b/src/invitation.c @@ -787,7 +787,7 @@ ask_netname: } -static bool invitation_send(void *handle, uint8_t type, const char *data, size_t len) { +static bool invitation_send(void *handle, uint8_t type, const void *data, size_t len) { while(len) { int result = send(sock, data, len, 0); if(result == -1 && errno == EINTR) @@ -800,7 +800,7 @@ static bool invitation_send(void *handle, uint8_t type, const char *data, size_t return true; } -static bool invitation_receive(void *handle, uint8_t type, const char *msg, uint16_t len) { +static bool invitation_receive(void *handle, uint8_t type, const void *msg, uint16_t len) { switch(type) { case SPTPS_HANDSHAKE: return sptps_send_record(&sptps, 0, cookie, sizeof cookie);