Ignore:
Timestamp:
Oct 24, 2006 5:13:30 PM (17 years ago)
Author:
bennylp
Message:

Bulk of PJLIB implementations on Symbian: exception framework, errno, OS core, Unicode, pool backend, log (to console), socket, address resolution, select, etc. IOQueue still doesn't work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/symbian/pjlib/src/pjlib-test/string_test.c

    r692 r788  
    284284int string_test(void) 
    285285{ 
    286     const pj_str_t hello_world = { HELLO_WORLD, strlen(HELLO_WORLD) }; 
    287     const pj_str_t just_hello = { JUST_HELLO, strlen(JUST_HELLO) }; 
     286    pj_str_t hello_world; 
     287    pj_str_t just_hello; 
    288288    pj_str_t s1, s2, s3, s4, s5; 
    289289    enum { RCOUNT = 10, RLEN = 16 }; 
     
    291291    pj_pool_t *pool; 
    292292    int i; 
     293 
     294    hello_world = pj_str(HELLO_WORLD); 
     295    just_hello = pj_str(JUST_HELLO); 
    293296 
    294297    pool = pj_pool_create(mem, NULL, 4096, 0, NULL); 
     
    328331     * pj_strcpy(), pj_strcat()  
    329332     */ 
    330     s3.ptr = pj_pool_alloc(pool, 256); 
     333    s3.ptr = (char*)pj_pool_alloc(pool, 256); 
    331334    if (!s3.ptr)  
    332335        return -200; 
     
    348351     * pj_utoa()  
    349352     */ 
    350     s5.ptr = pj_pool_alloc(pool, 16); 
     353    s5.ptr = (char*)pj_pool_alloc(pool, 16); 
    351354    if (!s5.ptr) 
    352355        return -270; 
     
    366369        int j; 
    367370         
    368         random[i].ptr = pj_pool_alloc(pool, RLEN); 
     371        random[i].ptr = (char*)pj_pool_alloc(pool, RLEN); 
    369372        if (!random[i].ptr) 
    370373            return -320; 
Note: See TracChangeset for help on using the changeset viewer.