Merge branch 'master' into develop
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user