Changeset 3254
- Timestamp:
- Aug 6, 2010 4:20:48 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/ssl_sock.c
r3117 r3254 204 204 205 205 /* Duplicate parent test state to newly accepted test state */ 206 st = pj_pool_zalloc(parent_st->pool, sizeof(struct test_state));206 st = (struct test_state*)pj_pool_zalloc(parent_st->pool, sizeof(struct test_state)); 207 207 *st = *parent_st; 208 208 pj_ssl_sock_set_user_data(newsock, st); … … 598 598 state_cli.send_str_len = (pj_rand() % 5 + 1) * 1024 + pj_rand() % 1024; 599 599 } 600 state_cli.send_str = pj_pool_alloc(pool, state_cli.send_str_len);600 state_cli.send_str = (char*)pj_pool_alloc(pool, state_cli.send_str_len); 601 601 { 602 602 unsigned i; … … 1210 1210 1211 1211 /* Allocate SSL socket pointers and test state */ 1212 ssock_cli = pj_pool_calloc(pool, clients, sizeof(pj_ssl_sock_t*));1213 state_cli = pj_pool_calloc(pool, clients, sizeof(struct test_state));1212 ssock_cli = (pj_ssl_sock_t**)pj_pool_calloc(pool, clients, sizeof(pj_ssl_sock_t*)); 1213 state_cli = (struct test_state*)pj_pool_calloc(pool, clients, sizeof(struct test_state)); 1214 1214 1215 1215 /* Get start timestamp */ … … 1223 1223 state_cli[i].check_echo = PJ_TRUE; 1224 1224 state_cli[i].send_str_len = (pj_rand() % 5 + 1) * 1024 + pj_rand() % 1024; 1225 state_cli[i].send_str = pj_pool_alloc(pool, state_cli[i].send_str_len);1225 state_cli[i].send_str = (char*)pj_pool_alloc(pool, state_cli[i].send_str_len); 1226 1226 { 1227 1227 unsigned j;
Note: See TracChangeset
for help on using the changeset viewer.