Ignore:
Timestamp:
May 11, 2007 3:14:34 PM (14 years ago)
Author:
bennylp
Message:

HUGE changeset to make the rest of the libraries compile with C++ mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjstun-srv-test/usage.c

    r1054 r1266  
    100100 
    101101    usage->worker_cnt = si->thread_cnt; 
    102     usage->worker = pj_pool_calloc(pool, si->thread_cnt,  
    103                                    sizeof(struct worker)); 
     102    usage->worker = (struct worker*) pj_pool_calloc(pool, si->thread_cnt,  
     103                                                    sizeof(struct worker)); 
    104104    for (i=0; i<si->thread_cnt; ++i) { 
    105105        pj_ioqueue_op_key_init(&usage->worker[i].read_key,  
     
    109109 
    110110    usage->send_count = usage->worker_cnt * 2; 
    111     usage->send_key = pj_pool_calloc(pool, usage->send_count,  
     111    usage->send_key = (pj_ioqueue_op_key_t*) 
     112                      pj_pool_calloc(pool, usage->send_count,  
    112113                                     sizeof(pj_ioqueue_op_key_t)); 
    113114    for (i=0; i<usage->send_count; ++i) { 
     
    241242{ 
    242243    enum { MAX_LOOP = 10 }; 
    243     pj_stun_usage *usage = pj_ioqueue_get_user_data(key); 
     244    pj_stun_usage *usage = (pj_stun_usage*) pj_ioqueue_get_user_data(key); 
    244245    struct worker *worker = (struct worker*) op_key; 
    245246    unsigned count; 
Note: See TracChangeset for help on using the changeset viewer.