Changeset 7f1c620 in mainline for generic/src/time


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

Location:
generic/src/time
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • generic/src/time/clock.c

    r991779c5 r7f1c620  
    5858/* Pointers to public variables with time */
    5959struct ptime {
    60         __native seconds1;
    61         __native useconds;
    62         __native seconds2;
     60        unative_t seconds1;
     61        unative_t useconds;
     62        unative_t seconds2;
    6363};
    6464struct ptime *public_time;
     
    6666 * seconds correctly
    6767 */
    68 static __native secfrag = 0;
     68static unative_t secfrag = 0;
    6969
    7070/** Initialize realtime clock counter
     
    9191        public_time->useconds = 0;
    9292
    93         sysinfo_set_item_val("clock.faddr", NULL, (__native)faddr);
     93        sysinfo_set_item_val("clock.faddr", NULL, (unative_t)faddr);
    9494}
    9595
     
    166166
    167167        if (THREAD) {
    168                 __u64 ticks;
     168                uint64_t ticks;
    169169               
    170170                spinlock_lock(&CPU->lock);
  • generic/src/time/delay.c

    r991779c5 r7f1c620  
    5050 * @param usec Number of microseconds to sleep.
    5151 */
    52 void delay(__u32 usec)
     52void delay(uint32_t usec)
    5353{
    5454        ipl_t ipl;
  • generic/src/time/timeout.c

    r991779c5 r7f1c620  
    104104 *
    105105 */
    106 void timeout_register(timeout_t *t, __u64 time, timeout_handler_t f, void *arg)
     106void timeout_register(timeout_t *t, uint64_t time, timeout_handler_t f, void *arg)
    107107{
    108108        timeout_t *hlp = NULL;
    109109        link_t *l, *m;
    110110        ipl_t ipl;
    111         __u64 sum;
     111        uint64_t sum;
    112112
    113113        ipl = interrupts_disable();
Note: See TracChangeset for help on using the changeset viewer.