Changeset ed9a6fd in rtems


Ignore:
Timestamp:
Oct 11, 2017, 7:33:44 PM (22 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
ea0b339
Parents:
dfa9a2e7
git-author:
Sebastian Huber <sebastian.huber@…> (10/11/17 19:33:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/12/17 05:04:09)
Message:

posix: Use right time format in adjtime()

Update #2740.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/adjtime.c

    rdfa9a2e7 red9a6fd  
    4444)
    4545{
    46   Timestamp_Control  delta_as_timestamp;
     46  struct timespec delta_as_timespec;
    4747
    4848  /*
     
    7676
    7777  /*
    78    * convert delta timeval to internal timestamp
     78   * convert delta timeval to timespec
    7979   */
    80   _Timestamp_Set( &delta_as_timestamp, delta->tv_sec, delta->tv_usec * 1000 );
     80  delta_as_timespec.tv_sec = delta->tv_sec;
     81  delta_as_timespec.tv_nsec = delta->tv_usec * 1000;
    8182
    8283  /*
    8384   * Now apply the adjustment
    8485   */
    85   _TOD_Adjust( &delta_as_timestamp );
     86  _TOD_Adjust( &delta_as_timespec );
    8687
    8788  return 0;
Note: See TracChangeset for help on using the changeset viewer.