Changeset f7ea5400 in mainline for uspace/drv/time/cmos-rtc/cmos-rtc.c


Ignore:
Timestamp:
2012-08-15T17:52:09Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
16639bb
Parents:
9dec6d4
Message:

Replace the gmtime(), asctime() localtime() and ctime() with a new set of reentrant functions.
The former will be kept in the posix library for compatibility reasons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/time/cmos-rtc/cmos-rtc.c

    r9dec6d4 rf7ea5400  
    301301
    302302                time_t cur_time = boottime + uptime_get();
    303                 *t = *gmtime(&cur_time);
    304                 return EOK;
     303                return localtime2tm(cur_time, t);
    305304        }
    306305
Note: See TracChangeset for help on using the changeset viewer.