Update picow_ntp_client.c (#391)
Fix "invalid conversion from 'void*' to 'NTP_T*'"
This commit is contained in:
committed by
GitHub
parent
8df09c9a7c
commit
654aabc686
@@ -108,7 +108,7 @@ static void ntp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_ad
|
|||||||
|
|
||||||
// Perform initialisation
|
// Perform initialisation
|
||||||
static NTP_T* ntp_init(void) {
|
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) {
|
if (!state) {
|
||||||
printf("failed to allocate state\n");
|
printf("failed to allocate state\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user