gpt-3.5-turbo-0613· openai
Suzhen/CodeChat
error: '*(const otethctrl_config **)&testethconfig->otethapctrlconfig' is a pointer; did…
- User
error: '*(const ot_eth_ctrl_config **)&test_eth_config->ot_eth_ap_ctrl_config' is a pointer; did you mean to use '->'? 58 | test_eth_config->ot_eth_ap_ctrl_config->ot_eth_p_dal_ctrl_config->ot_eth_dal_p_gmac_ctrl_config->gmac_ctrl_config->gmac_p_ctrl_state = OT_NULL;
- Assistant
No, the error message is indicating that you should not use '->' to access the inner members of the pointer. Instead, you should use the indirection operator '*' to access the inner members.
Here's the corrected line of code:
*(const ot_eth_ctrl_config **)&test_eth_config->ot_eth_ap_ctrl_config->ot_eth_p_dal_ctrl_config->ot_eth_dal_p_gmac_ctrl_config->gmac_ctrl_config->gmac_p_ctrl_state = OT_NULL;