projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add BroadcastSubnet and DeviceStandby options to the manual and completion.
[tinc]
/
src
/
invitation.c
diff --git
a/src/invitation.c
b/src/invitation.c
index
28f9f8c
..
dff8d5f
100644
(file)
--- 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)
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;
}
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);
switch(type) {
case SPTPS_HANDSHAKE:
return sptps_send_record(&sptps, 0, cookie, sizeof cookie);