873: error: invalid conversion from 'void*' to 'fabl_infod_twamp_reply_t*'
And the code in lines 870-873 is;
870: reply_hdr =
871: fabl_infod_extract_from_message(sizeof(fabl_infod_twamp_reply_t),
872: &buffer_pos,
873: &buffer_length);
The function parameters for "fabl_infod_extract_from_message";
static inline void * fabl_infod_extract_from_message (uint32_t struct_size,
uint8_t **buffer_pos,
uint32_t *buffer_length)
Any suggestions appreciated!
Though I have tried typecating as;
reply_hdr = (void *)fabl_infod_extract_from_message(sizeof(fabl_infod_twamp_reply_t),
&buffer_pos,
&buffer_length);
The program is in C++.
Aucun commentaire:
Enregistrer un commentaire