Skip to content

Mark mclock parameter of update_media_clock as const #5

Merged
merged 1 commit into from May 17, 2012
Commits on May 17, 2012
  1. @rlsosborne

    Mark mclock parameter of update_media_clock as const.

    rlsosborne committed May 17, 2012
    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.
Something went wrong with that request. Please try again.