Merge branch 'master' into develop

This commit is contained in:
graham sanderson
2023-06-08 15:22:59 -05:00
3 changed files with 86 additions and 108 deletions

View File

@@ -108,7 +108,7 @@ static void ntp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_ad
// Perform initialisation
static NTP_T* ntp_init(void) {
NTP_T *state = calloc(1, sizeof(NTP_T));
NTP_T *state = (NTP_T*)calloc(1, sizeof(NTP_T));
if (!state) {
printf("failed to allocate state\n");
return NULL;
@@ -183,4 +183,4 @@ int main() {
run_ntp_test();
cyw43_arch_deinit();
return 0;
}
}