Changeset 7f1c620 in mainline for test/synch/semaphore2/test.c


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.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/synch/semaphore2/test.c

    r991779c5 r7f1c620  
    4646static waitq_t can_start;
    4747
    48 __u32 seed = 0xdeadbeef;
     48uint32_t seed = 0xdeadbeef;
    4949
    50 static __u32 random(__u32 max);
     50static uint32_t random(uint32_t max);
    5151
    5252static void consumer(void *arg);
    5353static void failed(void);
    5454
    55 __u32 random(__u32 max)
     55uint32_t random(uint32_t max)
    5656{
    57         __u32 rc;
     57        uint32_t rc;
    5858
    5959        spinlock_lock(&lock);   
     
    9696void test(void)
    9797{
    98         __u32 i, k;
     98        uint32_t i, k;
    9999       
    100100        printf("Semaphore test #2\n");
Note: See TracChangeset for help on using the changeset viewer.