Ignore:
File:
1 edited

Legend:

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

    r6eef3c4 r897fd8f1  
    6060static void consumer(void *arg)
    6161{
    62         int rc, to;
     62        int rc;
     63        int to;
    6364       
    6465        thread_detach(THREAD);
     
    6970        TPRINTF("cpu%u, tid %" PRIu64 " down+ (%d)\n", CPU->id, THREAD->tid, to);
    7071        rc = semaphore_down_timeout(&sem, to);
    71         if (SYNCH_FAILED(rc)) {
     72        if (rc != EOK) {
    7273                TPRINTF("cpu%u, tid %" PRIu64 " down!\n", CPU->id, THREAD->tid);
    7374                return;
Note: See TracChangeset for help on using the changeset viewer.