Update picow_ntp_client.c (#391)

Fix "invalid conversion from 'void*' to 'NTP_T*'"
This commit is contained in:
Frederico Pereira
2023-06-06 16:51:55 +01:00
committed by GitHub
parent 8df09c9a7c
commit 654aabc686

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;