Compilation fixes

This commit is contained in:
Luca Deri 2020-11-10 16:40:33 +01:00
parent eeb0f545a8
commit 7e26499c4f
2 changed files with 4 additions and 2 deletions

View File

@ -233,6 +233,8 @@ int cc20_crypt (unsigned char *out, const unsigned char *in, size_t in_len,
}
}
return(0);
}

View File

@ -965,11 +965,11 @@ static int build_gratuitous_arp(n2n_edge_t * eee, char *buffer, uint16_t buffer_
/** Called from update_supernode_reg to periodically send gratuitous ARP
* broadcasts. */
static void send_grat_arps(n2n_edge_t * eee) {
char buffer[48];
uint8_t buffer[48];
size_t len;
traceEvent(TRACE_DEBUG, "Sending gratuitous ARP...");
len = build_gratuitous_arp(eee, buffer, sizeof(buffer));
len = build_gratuitous_arp(eee, (char*)buffer, sizeof(buffer));
edge_send_packet2net(eee, buffer, len);
edge_send_packet2net(eee, buffer, len); /* Two is better than one :-) */