- Timestamp:
- Oct 24, 2006 5:13:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/symbian/pjlib/src/pjlib-test/string_test.c
r692 r788 284 284 int string_test(void) 285 285 { 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; 288 288 pj_str_t s1, s2, s3, s4, s5; 289 289 enum { RCOUNT = 10, RLEN = 16 }; … … 291 291 pj_pool_t *pool; 292 292 int i; 293 294 hello_world = pj_str(HELLO_WORLD); 295 just_hello = pj_str(JUST_HELLO); 293 296 294 297 pool = pj_pool_create(mem, NULL, 4096, 0, NULL); … … 328 331 * pj_strcpy(), pj_strcat() 329 332 */ 330 s3.ptr = pj_pool_alloc(pool, 256);333 s3.ptr = (char*)pj_pool_alloc(pool, 256); 331 334 if (!s3.ptr) 332 335 return -200; … … 348 351 * pj_utoa() 349 352 */ 350 s5.ptr = pj_pool_alloc(pool, 16);353 s5.ptr = (char*)pj_pool_alloc(pool, 16); 351 354 if (!s5.ptr) 352 355 return -270; … … 366 369 int j; 367 370 368 random[i].ptr = pj_pool_alloc(pool, RLEN);371 random[i].ptr = (char*)pj_pool_alloc(pool, RLEN); 369 372 if (!random[i].ptr) 370 373 return -320;
Note: See TracChangeset
for help on using the changeset viewer.