Ignore:
Timestamp:
Apr 30, 2007 9:03:32 PM (17 years ago)
Author:
bennylp
Message:

Initial Symbian integration to trunk for pjlib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/ioq_perf.c

    r974 r1235  
    7373                             pj_ssize_t bytes_read) 
    7474{ 
    75     test_item *item = pj_ioqueue_get_user_data(key); 
     75    test_item *item = (test_item*)pj_ioqueue_get_user_data(key); 
    7676    pj_status_t rc; 
    7777    int data_is_available = 1; 
     
    151151                              pj_ssize_t bytes_sent) 
    152152{ 
    153     test_item *item = pj_ioqueue_get_user_data(key); 
     153    test_item *item = (test_item*) pj_ioqueue_get_user_data(key); 
    154154     
    155155    //TRACE_((THIS_FILE, "     write complete: sent = %d", bytes_sent)); 
     
    189189static int worker_thread(void *p) 
    190190{ 
    191     struct thread_arg *arg = p; 
     191    struct thread_arg *arg = (struct thread_arg*) p; 
    192192    const pj_time_val timeout = {0, 100}; 
    193193    int rc; 
     
    250250        return -10; 
    251251 
    252     items = pj_pool_alloc(pool, sockpair_cnt*sizeof(test_item)); 
    253     thread = pj_pool_alloc(pool, thread_cnt*sizeof(pj_thread_t*)); 
     252    items = (test_item*) pj_pool_alloc(pool, sockpair_cnt*sizeof(test_item)); 
     253    thread = (pj_thread_t**) 
     254             pj_pool_alloc(pool, thread_cnt*sizeof(pj_thread_t*)); 
    254255 
    255256    TRACE_((THIS_FILE, "     creating ioqueue..")); 
     
    266267        items[i].ioqueue = ioqueue; 
    267268        items[i].buffer_size = buffer_size; 
    268         items[i].outgoing_buffer = pj_pool_alloc(pool, buffer_size); 
    269         items[i].incoming_buffer = pj_pool_alloc(pool, buffer_size); 
     269        items[i].outgoing_buffer = (char*) pj_pool_alloc(pool, buffer_size); 
     270        items[i].incoming_buffer = (char*) pj_pool_alloc(pool, buffer_size); 
    270271        items[i].bytes_recv = items[i].bytes_sent = 0; 
    271272 
     
    332333        struct thread_arg *arg; 
    333334 
    334         arg = pj_pool_zalloc(pool, sizeof(*arg)); 
     335        arg = (thread_arg*) pj_pool_zalloc(pool, sizeof(*arg)); 
    335336        arg->id = i; 
    336337        arg->ioqueue = ioqueue; 
Note: See TracChangeset for help on using the changeset viewer.