Changeset c0623a99 in rtems


Ignore:
Timestamp:
Oct 6, 2017, 1:00:27 PM (23 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
2256946
Parents:
80933ab3
git-author:
Sebastian Huber <sebastian.huber@…> (10/06/17 13:00:27)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/09/17 06:17:17)
Message:

score: Simplify _Timestamp_Add_to()

Update #2740.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/timestamp.h

    r80933ab3 rc0623a99  
    176176 *  @param[in] _time points to the base time to be added to
    177177 *  @param[in] _add points to the timestamp to add to the first argument
    178  *
    179  *  @retval This method returns the number of seconds @a time increased by.
    180  */
    181 RTEMS_INLINE_ROUTINE time_t _Timestamp_Add_to(
     178 */
     179RTEMS_INLINE_ROUTINE void _Timestamp_Add_to(
    182180  Timestamp_Control *_time,
    183181  const Timestamp_Control *_add
    184182)
    185183{
    186   time_t seconds = _time->sec;
    187 
    188184  bintime_add( _time, _add );
    189 
    190   return _time->sec - seconds;
    191185}
    192186
Note: See TracChangeset for help on using the changeset viewer.