xcore/sw_avb — pull request #5 by rlsosborne (2012-05-17 13:26:44+00:00)
Title: Mark mclock parameter of update_media_clock as const

media_clock_server.c contains the following call:

media_clocks[i].wordLength =
update_media_clock(ptp_svr, i, media_clocks[i], clk_time,
CLOCK_RECOVERY_PERIOD);

Previously media_clocks would conservatively be consider as written by the
RHS since it is passed by non const reference. It is also written on the
LHS of the assignment. This is invalid according to the XC spec.
The 11.11.0 tools don't spot this but future versions will.