2020-07-27 02:18 PM
It looks like a simple refactor bug. The ethernet_link_check_state function includes the line:
struct netif *netif = (struct netif *) argument;
but argument does not exist and netif is the name of the function argument. I assume a previous version had argument passed in as a void*. Deleting the line seems sufficient to fix it. Is there a way I can fix it so that it persists across a regeneration?
Solved! Go to Solution.
2020-11-09 12:00 AM
I did not change enything else.
Notice that it has to be "argument". I made mistake in word.
There are two ways to fix it. You can just remove the line:
struct netif *netif = (struct netif *) argument;
That line for me does nothing but maybe I'm wrong.
Or you can pass to the fucntion "*argument".
What are your other issues?