- Timestamp:
- Jul 3, 2006 3:19:31 PM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 69 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjlib-util-test/xml.c
r65 r582 111 111 } 112 112 113 output = (char*)pj_pool_alloc(pool, msg.slen + 512); 114 pj_memset(output, 0, msg.slen+512); 113 output = (char*)pj_pool_zalloc(pool, msg.slen + 512); 115 114 output_len = pj_xml_print(root, output, msg.slen+512, PJ_TRUE); 116 115 if (output_len < 1) { -
pjproject/trunk/pjlib-util/src/pjlib-util/md5.c
r65 r582 152 152 if (count < 8) { 153 153 /* Two lots of padding: Pad the first block to 64 bytes */ 154 pj_ memset(p, 0, count);154 pj_bzero(p, count); 155 155 byteReverse(ctx->in, 16); 156 156 MD5Transform(ctx->buf, (pj_uint32_t *) ctx->in); 157 157 158 158 /* Now fill the next block with 56 bytes */ 159 pj_ memset(ctx->in, 0, 56);159 pj_bzero(ctx->in, 56); 160 160 } else { 161 161 /* Pad block to 56 bytes */ 162 pj_ memset(p, 0, count - 8);162 pj_bzero(p, count - 8); 163 163 } 164 164 byteReverse(ctx->in, 14); … … 171 171 byteReverse((unsigned char *) ctx->buf, 4); 172 172 pj_memcpy(digest, ctx->buf, 16); 173 pj_ memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */173 pj_bzero(ctx, sizeof(ctx)); /* In case it's sensitive */ 174 174 } 175 175 -
pjproject/trunk/pjlib-util/src/pjlib-util/scanner_cis_bitwise.c
r73 r582 25 25 PJ_DEF(void) pj_cis_buf_init( pj_cis_buf_t *cis_buf) 26 26 { 27 pj_ memset(cis_buf->cis_buf, 0, sizeof(cis_buf->cis_buf));27 pj_bzero(cis_buf->cis_buf, sizeof(cis_buf->cis_buf)); 28 28 cis_buf->use_mask = 0; 29 29 } -
pjproject/trunk/pjlib-util/src/pjlib-util/scanner_cis_uint.c
r73 r582 31 31 PJ_DEF(pj_status_t) pj_cis_init(pj_cis_buf_t *cis_buf, pj_cis_t *cis) 32 32 { 33 pj_ memset(cis->cis_buf, 0, sizeof(cis->cis_buf));33 pj_bzero(cis->cis_buf, sizeof(cis->cis_buf)); 34 34 return PJ_SUCCESS; 35 35 } -
pjproject/trunk/pjlib/include/pj/compat/cc_gcc.h
r560 r582 50 50 51 51 52 #ifdef __GLIBC__ 53 # define PJ_HAS_BZERO 1 54 #endif 55 56 52 57 #endif /* __PJ_COMPAT_CC_GCC_H__ */ 53 58 -
pjproject/trunk/pjlib/include/pj/pool_i.h
r69 r582 69 69 void *buf = pj_pool_alloc( pool, size*count); 70 70 if (buf) 71 pj_ memset(buf, 0, size * count);71 pj_bzero(buf, size * count); 72 72 return buf; 73 73 } -
pjproject/trunk/pjlib/include/pj/string.h
r581 r582 553 553 PJ_INLINE(void) pj_bzero(void *dst, pj_size_t size) 554 554 { 555 #if defined(PJ_HAS_BZERO) && PJ_HAS_BZERO!=0 555 556 bzero(dst, size); 557 #else 558 memset(dst, 0, size); 559 #endif 556 560 } 557 561 -
pjproject/trunk/pjlib/src/pj/file_access_win32.c
r181 r582 143 143 // return PJ_RETURN_OS_ERROR(GetLastError()); 144 144 145 pj_ memset(&pt, 0, sizeof(pt));145 pj_bzero(&pt, sizeof(pt)); 146 146 pt.year = localTime.wYear; 147 147 pt.mon = localTime.wMonth-1; -
pjproject/trunk/pjlib/src/pj/ioqueue_common_abs.c
r536 r582 998 998 pj_size_t size ) 999 999 { 1000 pj_ memset(op_key, 0, size);1000 pj_bzero(op_key, size); 1001 1001 } 1002 1002 -
pjproject/trunk/pjlib/src/pj/ioqueue_winnt.c
r559 r582 178 178 pj_memcpy(accept_overlapped->remote, remote, locallen); 179 179 } else { 180 pj_ memset(accept_overlapped->local, 0, *accept_overlapped->addrlen);181 pj_ memset(accept_overlapped->remote, 0, *accept_overlapped->addrlen);180 pj_bzero(accept_overlapped->local, *accept_overlapped->addrlen); 181 pj_bzero(accept_overlapped->remote, *accept_overlapped->addrlen); 182 182 } 183 183 *accept_overlapped->addrlen = locallen; … … 834 834 * Register overlapped Recv() operation. 835 835 */ 836 pj_ memset(&op_key_rec->overlapped.overlapped, 0,836 pj_bzero( &op_key_rec->overlapped.overlapped, 837 837 sizeof(op_key_rec->overlapped.overlapped)); 838 838 op_key_rec->overlapped.operation = PJ_IOQUEUE_OP_RECV; … … 910 910 * Register overlapped Recv() operation. 911 911 */ 912 pj_ memset(&op_key_rec->overlapped.overlapped, 0,912 pj_bzero( &op_key_rec->overlapped.overlapped, 913 913 sizeof(op_key_rec->overlapped.overlapped)); 914 914 op_key_rec->overlapped.operation = PJ_IOQUEUE_OP_RECV; … … 1003 1003 * Schedule asynchronous WSASend(). 1004 1004 */ 1005 pj_ memset(&op_key_rec->overlapped.overlapped, 0,1005 pj_bzero( &op_key_rec->overlapped.overlapped, 1006 1006 sizeof(op_key_rec->overlapped.overlapped)); 1007 1007 op_key_rec->overlapped.operation = PJ_IOQUEUE_OP_SEND; … … 1100 1100 op_key_rec->accept.remote = remote; 1101 1101 op_key_rec->accept.newsock_ptr = new_sock; 1102 pj_ memset(&op_key_rec->accept.overlapped, 0,1102 pj_bzero( &op_key_rec->accept.overlapped, 1103 1103 sizeof(op_key_rec->accept.overlapped)); 1104 1104 … … 1207 1207 pj_size_t size ) 1208 1208 { 1209 pj_ memset(op_key, 0, size);1209 pj_bzero(op_key, size); 1210 1210 } 1211 1211 -
pjproject/trunk/pjlib/src/pj/os_core_linux_kernel.c
r233 r582 262 262 263 263 /* Initialize and set the thread entry. */ 264 pj_ memset(desc, 0, sizeof(struct pj_thread_t));264 pj_bzero(desc, sizeof(struct pj_thread_t)); 265 265 266 266 if(cstr_thread_name && pj_strlen(&thread_name) < sizeof(thread->obj_name)-1) -
pjproject/trunk/pjlib/src/pj/os_core_unix.c
r433 r582 207 207 208 208 /* Initialize and set the thread entry. */ 209 pj_ memset(desc, 0, sizeof(struct pj_thread_t));209 pj_bzero(desc, sizeof(struct pj_thread_t)); 210 210 thread->thread = pthread_self(); 211 211 -
pjproject/trunk/pjlib/src/pj/os_core_win32.c
r434 r582 216 216 217 217 /* Initialize and set the thread entry. */ 218 pj_ memset(desc, 0, sizeof(struct pj_thread_t));218 pj_bzero(desc, sizeof(struct pj_thread_t)); 219 219 thread->hthread = GetCurrentThread(); 220 220 thread->idthread = GetCurrentThreadId(); -
pjproject/trunk/pjlib/src/pj/os_time_win32.c
r313 r582 103 103 LARGE_INTEGER li; 104 104 105 pj_ memset(&st, 0, sizeof(st));105 pj_bzero(&st, sizeof(st)); 106 106 st.wYear = (pj_uint16_t) pt->year; 107 107 st.wMonth = (pj_uint16_t) (pt->mon + 1); -
pjproject/trunk/pjlib/src/pj/pool.c
r433 r582 185 185 /* Set pool administrative data. */ 186 186 pool = (pj_pool_t*)buffer; 187 pj_ memset(pool, 0, sizeof(*pool));187 pj_bzero(pool, sizeof(*pool)); 188 188 189 189 pj_list_init(&pool->block_list); -
pjproject/trunk/pjlib/src/pj/pool_caching.c
r581 r582 48 48 PJ_CHECK_STACK(); 49 49 50 pj_ memset(cp, 0, sizeof(*cp));50 pj_bzero(cp, sizeof(*cp)); 51 51 52 52 cp->max_capacity = max_capacity; -
pjproject/trunk/pjlib/src/pj/pool_dbg.c
r364 r582 177 177 return NULL; 178 178 179 pj_ memset(mem, 0, cnt*elemsz);179 pj_bzero(mem, cnt*elemsz); 180 180 return mem; 181 181 } -
pjproject/trunk/pjlib/src/pj/sock_bsd.c
r557 r582 211 211 RESET_LEN(addr); 212 212 addr->sin_family = AF_INET; 213 pj_ memset(addr->sin_zero, 0, sizeof(addr->sin_zero));213 pj_bzero(addr->sin_zero, sizeof(addr->sin_zero)); 214 214 215 215 if (str_addr && str_addr->slen) { … … 249 249 RESET_LEN(addr); 250 250 addr->sin_family = PJ_AF_INET; 251 pj_ memset(addr->sin_zero, 0, sizeof(addr->sin_zero));251 pj_bzero(addr->sin_zero, sizeof(addr->sin_zero)); 252 252 pj_sockaddr_in_set_port(addr, port); 253 253 return pj_sockaddr_in_set_str_addr(addr, str_addr); … … 371 371 SET_LEN(&addr, sizeof(pj_sockaddr_in)); 372 372 addr.sin_family = PJ_AF_INET; 373 pj_ memset(addr.sin_zero, 0, sizeof(addr.sin_zero));373 pj_bzero(addr.sin_zero, sizeof(addr.sin_zero)); 374 374 addr.sin_addr.s_addr = pj_htonl(addr32); 375 375 addr.sin_port = pj_htons(port); -
pjproject/trunk/pjlib/src/pjlib-test/ioq_udp.c
r433 r582 165 165 // Bind server socket. 166 166 TRACE_("bind socket..."); 167 pj_ memset(&addr, 0, sizeof(addr));167 pj_bzero(&addr, sizeof(addr)); 168 168 addr.sin_family = PJ_AF_INET; 169 169 addr.sin_port = pj_htons(PORT); … … 202 202 // Register reading from ioqueue. 203 203 TRACE_("start recvfrom..."); 204 pj_ memset(&addr, 0, sizeof(addr));204 pj_bzero(&addr, sizeof(addr)); 205 205 addrlen = sizeof(addr); 206 206 bytes = bufsize; … … 387 387 388 388 /* Register rsock to ioqueue. */ 389 pj_ memset(&cb, 0, sizeof(cb));389 pj_bzero(&cb, sizeof(cb)); 390 390 cb.on_read_complete = &on_read_complete; 391 391 packet_cnt = 0; … … 618 618 619 619 // Bind server socket. 620 pj_ memset(&addr, 0, sizeof(addr));620 pj_bzero(&addr, sizeof(addr)); 621 621 addr.sin_family = PJ_AF_INET; 622 622 addr.sin_port = pj_htons(PORT); … … 639 639 inactive_read_op = (pj_ioqueue_op_key_t*)pj_pool_alloc(pool, 640 640 inactive_sock_count*sizeof(pj_ioqueue_op_key_t)); 641 pj_ memset(&addr, 0, sizeof(addr));641 pj_bzero(&addr, sizeof(addr)); 642 642 addr.sin_family = PJ_AF_INET; 643 643 for (i=0; i<inactive_sock_count; ++i) { -
pjproject/trunk/pjlib/src/pjlib-test/ioq_unreg.c
r365 r582 166 166 } 167 167 168 pj_ memset(&callback, 0, sizeof(callback));168 pj_bzero(&callback, sizeof(callback)); 169 169 status = pj_ioqueue_register_sock(test_pool, ioqueue, osd.sock, 170 170 NULL, &callback, &osd.key); … … 227 227 228 228 /* Register socket to ioqueue */ 229 pj_ memset(&callback, 0, sizeof(callback));229 pj_bzero(&callback, sizeof(callback)); 230 230 callback.on_read_complete = &on_read_complete; 231 231 status = pj_ioqueue_register_sock(sock_data.pool, ioqueue, sock_data.sock, -
pjproject/trunk/pjlib/src/pjlib-test/select.c
r65 r582 125 125 126 126 // Bind one of the UDP socket. 127 pj_ memset(&udp_addr, 0, sizeof(udp_addr));127 pj_bzero(&udp_addr, sizeof(udp_addr)); 128 128 udp_addr.sin_family = PJ_AF_INET; 129 129 udp_addr.sin_port = UDP_PORT; -
pjproject/trunk/pjlib/src/pjlib-test/sock.c
r557 r582 110 110 */ 111 111 pj_sockaddr_in_init(&addr2, 0, 1000); 112 pj_ memset(zero, 0, sizeof(zero));112 pj_bzero(zero, sizeof(zero)); 113 113 if (pj_memcmp(addr2.sin_zero, zero, sizeof(addr2.sin_zero)) != 0) 114 114 return -35; … … 197 197 int srclen = sizeof(addr); 198 198 199 pj_ memset(&addr, 0, sizeof(addr));199 pj_bzero(&addr, sizeof(addr)); 200 200 201 201 received = DATA_LEN; … … 335 335 336 336 /* Bind server socket. */ 337 pj_ memset(&dstaddr, 0, sizeof(dstaddr));337 pj_bzero(&dstaddr, sizeof(dstaddr)); 338 338 dstaddr.sin_family = PJ_AF_INET; 339 339 dstaddr.sin_port = pj_htons(UDP_PORT); … … 346 346 347 347 /* Bind client socket. */ 348 pj_ memset(&srcaddr, 0, sizeof(srcaddr));348 pj_bzero(&srcaddr, sizeof(srcaddr)); 349 349 srcaddr.sin_family = PJ_AF_INET; 350 350 srcaddr.sin_port = pj_htons(UDP_PORT-1); -
pjproject/trunk/pjlib/src/pjlib-test/udp_echo_srv_ioqueue.c
r509 r582 163 163 pj_status_t rc; 164 164 165 pj_ memset(&callback, 0, sizeof(callback));165 pj_bzero(&callback, sizeof(callback)); 166 166 callback.on_read_complete = &on_read_complete; 167 167 callback.on_write_complete = &on_write_complete; -
pjproject/trunk/pjlib/src/pjlib-test/util.c
r433 r582 46 46 return rc; 47 47 48 pj_ memset(&addr, 0, sizeof(addr));48 pj_bzero(&addr, sizeof(addr)); 49 49 addr.sin_family = (pj_uint16_t)family; 50 50 addr.sin_port = (short)(port!=-1 ? pj_htons((pj_uint16_t)port) : 0); … … 86 86 87 87 /* Retry bind */ 88 pj_ memset(&addr, 0, sizeof(addr));88 pj_bzero(&addr, sizeof(addr)); 89 89 addr.sin_family = PJ_AF_INET; 90 90 for (i=0; i<5; ++i) { -
pjproject/trunk/pjmedia/include/pjmedia/types.h
r518 r582 169 169 { 170 170 #if 1 171 pj_ memset(samples, 0, count*sizeof(pj_int16_t));171 pj_bzero(samples, count*sizeof(pj_int16_t)); 172 172 #elif 0 173 173 unsigned i; -
pjproject/trunk/pjmedia/src/pjmedia-codec/gsm.c
r457 r582 242 242 PJ_UNUSED_ARG(id); 243 243 244 pj_ memset(attr, 0, sizeof(pjmedia_codec_param));244 pj_bzero(attr, sizeof(pjmedia_codec_param)); 245 245 attr->info.clock_rate = 8000; 246 246 attr->info.channel_cnt = 1; … … 269 269 PJ_ASSERT_RETURN(codecs && *count > 0, PJ_EINVAL); 270 270 271 pj_ memset(&codecs[0], 0, sizeof(pjmedia_codec_info));271 pj_bzero(&codecs[0], sizeof(pjmedia_codec_info)); 272 272 codecs[0].encoding_name = pj_str("GSM"); 273 273 codecs[0].pt = PJMEDIA_RTP_PT_GSM; -
pjproject/trunk/pjmedia/src/pjmedia-codec/l16.c
r438 r582 235 235 PJ_UNUSED_ARG(factory); 236 236 237 pj_ memset(attr, 0, sizeof(pjmedia_codec_param));237 pj_bzero(attr, sizeof(pjmedia_codec_param)); 238 238 attr->info.pt = (pj_uint8_t)id->pt; 239 239 attr->info.clock_rate = id->clock_rate; -
pjproject/trunk/pjmedia/src/pjmedia-codec/speex_codec.c
r535 r582 382 382 PJ_ASSERT_RETURN(factory==&spx_factory.base, PJ_EINVAL); 383 383 384 pj_ memset(attr, 0, sizeof(pjmedia_codec_param));384 pj_bzero(attr, sizeof(pjmedia_codec_param)); 385 385 attr->info.pt = (pj_uint8_t)id->pt; 386 386 attr->info.channel_cnt = 1; … … 442 442 continue; 443 443 444 pj_ memset(&codecs[*count], 0, sizeof(pjmedia_codec_info));444 pj_bzero(&codecs[*count], sizeof(pjmedia_codec_info)); 445 445 codecs[*count].encoding_name = pj_str("speex"); 446 446 codecs[*count].pt = spx_factory.speex_param[i].pt; … … 751 751 752 752 if (input->type != PJMEDIA_FRAME_TYPE_AUDIO) { 753 pj_ memset(output->buf, 0, output_buf_len);753 pj_bzero(output->buf, output_buf_len); 754 754 output->size = 320; 755 755 output->timestamp.u64 = input->timestamp.u64; -
pjproject/trunk/pjmedia/src/pjmedia/conference.c
r531 r582 1533 1533 mix_buf = listener->mix_buf; 1534 1534 if (listener->src_level == 0) { 1535 pj_memset(mix_buf, 0, 1536 conf->samples_per_frame*sizeof(mix_buf[0])); 1535 pj_bzero( mix_buf, conf->samples_per_frame*sizeof(mix_buf[0])); 1537 1536 } 1538 1537 -
pjproject/trunk/pjmedia/src/pjmedia/dsound.c
r513 r582 115 115 unsigned channel_count) 116 116 { 117 pj_ memset(pcmwf, 0, sizeof(PCMWAVEFORMAT));117 pj_bzero(pcmwf, sizeof(PCMWAVEFORMAT)); 118 118 pcmwf->wf.wFormatTag = WAVE_FORMAT_PCM; 119 119 pcmwf->wf.nChannels = (pj_uint16_t)channel_count; … … 177 177 178 178 /* Set up DSBUFFERDESC structure. */ 179 pj_ memset(&dsbdesc, 0, sizeof(DSBUFFERDESC));179 pj_bzero(&dsbdesc, sizeof(DSBUFFERDESC)); 180 180 dsbdesc.dwSize = sizeof(DSBUFFERDESC); 181 181 dsbdesc.dwFlags = DSBCAPS_CTRLVOLUME | DSBCAPS_CTRLPOSITIONNOTIFY | … … 288 288 * to play buffer creation earlier. 289 289 */ 290 pj_ memset(&dscbdesc, 0, sizeof(DSCBUFFERDESC));290 pj_bzero(&dscbdesc, sizeof(DSCBUFFERDESC)); 291 291 dscbdesc.dwSize = sizeof(DSCBUFFERDESC); 292 292 dscbdesc.dwFlags = DSCBCAPS_WAVEMAPPED ; … … 549 549 550 550 if (!rc) { 551 pj_ memset(strm->buffer, 0, bytes_per_frame);551 pj_bzero(strm->buffer, bytes_per_frame); 552 552 } 553 553 -
pjproject/trunk/pjmedia/src/pjmedia/endpoint.c
r571 r582 486 486 ¶m) != PJ_SUCCESS) 487 487 { 488 pj_ memset(¶m, 0, sizeof(pjmedia_codec_param));488 pj_bzero(¶m, sizeof(pjmedia_codec_param)); 489 489 } 490 490 -
pjproject/trunk/pjmedia/src/pjmedia/g711.c
r457 r582 240 240 PJ_UNUSED_ARG(factory); 241 241 242 pj_ memset(attr, 0, sizeof(pjmedia_codec_param));242 pj_bzero(attr, sizeof(pjmedia_codec_param)); 243 243 attr->info.clock_rate = 8000; 244 244 attr->info.channel_cnt = 1; -
pjproject/trunk/pjmedia/src/pjmedia/jbuf.c
r442 r582 99 99 PJ_ASSERT_RETURN(pool && framelist, PJ_EINVAL); 100 100 101 pj_ memset(framelist, 0, sizeof(jb_framelist));101 pj_bzero(framelist, sizeof(jb_framelist)); 102 102 103 103 framelist->flist_frame_size = frame_size; … … 147 147 framelist->flist_frame_type[framelist->flist_head]; 148 148 149 pj_ memset(framelist->flist_buffer +149 pj_bzero(framelist->flist_buffer + 150 150 framelist->flist_head * framelist->flist_frame_size, 151 0,framelist->flist_frame_size);151 framelist->flist_frame_size); 152 152 framelist->flist_frame_type[framelist->flist_head] = 153 153 PJMEDIA_JB_MISSING_FRAME; … … 162 162 163 163 } else { 164 pj_ memset(frame, 0, framelist->flist_frame_size);164 pj_bzero(frame, framelist->flist_frame_size); 165 165 return PJ_FALSE; 166 166 } … … 190 190 } 191 191 192 pj_ memset(framelist->flist_buffer +192 pj_bzero(framelist->flist_buffer + 193 193 framelist->flist_head * framelist->flist_frame_size, 194 0,195 194 step1*framelist->flist_frame_size); 196 195 pj_memset(framelist->flist_frame_type+framelist->flist_head, … … 199 198 200 199 if (step2) { 201 pj_memset(framelist->flist_buffer, 202 0, 200 pj_bzero( framelist->flist_buffer, 203 201 step2*framelist->flist_frame_size); 204 202 pj_memset(framelist->flist_frame_type, … … 528 526 * minimum prefetch. 529 527 */ 530 pj_ memset(frame, 0, jb->jb_frame_size);528 pj_bzero(frame, jb->jb_frame_size); 531 529 if (jb_framelist_size(&jb->jb_framelist) == 0) 532 530 *p_frame_type = PJMEDIA_JB_ZERO_EMPTY_FRAME; … … 540 538 if (jb_framelist_get(&jb->jb_framelist,frame,&ftype) == PJ_FALSE) { 541 539 /* Can't return frame because jitter buffer is empty! */ 542 pj_ memset(frame, 0, jb->jb_frame_size);540 pj_bzero(frame, jb->jb_frame_size); 543 541 *p_frame_type = PJMEDIA_JB_ZERO_EMPTY_FRAME; 544 542 -
pjproject/trunk/pjmedia/src/pjmedia/master_port.c
r498 r582 150 150 151 151 /* Get frame from upstream port and pass it to downstream port */ 152 pj_ memset(&frame, 0, sizeof(frame));152 pj_bzero(&frame, sizeof(frame)); 153 153 frame.buf = m->buff; 154 154 frame.size = m->buff_size; … … 162 162 163 163 /* Get frame from downstream port and pass it to upstream port */ 164 pj_ memset(&frame, 0, sizeof(frame));164 pj_bzero(&frame, sizeof(frame)); 165 165 frame.buf = m->buff; 166 166 frame.size = m->buff_size; -
pjproject/trunk/pjmedia/src/pjmedia/pasound.c
r481 r582 212 212 return NULL; 213 213 214 pj_ memset(&info, 0, sizeof(info));214 pj_bzero(&info, sizeof(info)); 215 215 strncpy(info.name, pa_info->name, sizeof(info.name)); 216 216 info.name[sizeof(info.name)-1] = '\0'; … … 286 286 stream->rec_cb = rec_cb; 287 287 288 pj_ memset(&inputParam, 0, sizeof(inputParam));288 pj_bzero(&inputParam, sizeof(inputParam)); 289 289 inputParam.device = index; 290 290 inputParam.channelCount = channel_count; … … 379 379 stream->play_cb = play_cb; 380 380 381 pj_ memset(&outputParam, 0, sizeof(outputParam));381 pj_bzero(&outputParam, sizeof(outputParam)); 382 382 outputParam.device = index; 383 383 outputParam.channelCount = channel_count; … … 501 501 stream->play_cb = play_cb; 502 502 503 pj_ memset(&inputParam, 0, sizeof(inputParam));503 pj_bzero(&inputParam, sizeof(inputParam)); 504 504 inputParam.device = rec_id; 505 505 inputParam.channelCount = channel_count; … … 510 510 paRecHostApiInfo = Pa_GetHostApiInfo(paRecDevInfo->hostApi); 511 511 512 pj_ memset(&outputParam, 0, sizeof(outputParam));512 pj_bzero(&outputParam, sizeof(outputParam)); 513 513 outputParam.device = play_id; 514 514 outputParam.channelCount = channel_count; -
pjproject/trunk/pjmedia/src/pjmedia/plc_common.c
r438 r582 184 184 samp[i] = (pj_int16_t)(samp[i] >> 1); 185 185 } else { 186 pj_ memset(frame, 0, o->size);186 pj_bzero(frame, o->size); 187 187 } 188 188 } -
pjproject/trunk/pjmedia/src/pjmedia/resample_port.c
r518 r582 172 172 /* Return silence if we don't have downstream port */ 173 173 if (rport->dn_port == NULL) { 174 pj_ memset(frame->buf, frame->size, 0);174 pj_bzero(frame->buf, frame->size); 175 175 return PJ_SUCCESS; 176 176 } -
pjproject/trunk/pjmedia/src/pjmedia/rtcp.c
r569 r582 135 135 136 136 /* Memset everything */ 137 pj_ memset(sess, 0, sizeof(pjmedia_rtcp_session));137 pj_bzero(sess, sizeof(pjmedia_rtcp_session)); 138 138 139 139 /* Last RX timestamp in RTP packet */ -
pjproject/trunk/pjmedia/src/pjmedia/rtp.c
r567 r582 61 61 62 62 /* Initialize session. */ 63 pj_ memset(ses, 0, sizeof(*ses));63 pj_bzero(ses, sizeof(*ses)); 64 64 65 65 /* Initial sequence number SHOULD be random, according to RFC 3550. */ -
pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c
r527 r582 856 856 answer->media_count = 0; 857 857 858 pj_ memset(media_used, 0, sizeof(media_used));858 pj_bzero(media_used, sizeof(media_used)); 859 859 860 860 /* For each media line, create our answer based on our initial -
pjproject/trunk/pjmedia/src/pjmedia/session.c
r571 r582 104 104 /* Reset: */ 105 105 106 pj_ memset(si, 0, sizeof(*si));106 pj_bzero(si, sizeof(*si)); 107 107 108 108 /* Media type: */ -
pjproject/trunk/pjmedia/src/pjmedia/sound_port.c
r463 r582 118 118 #endif 119 119 } else { 120 pj_ memset(output, 0, size);120 pj_bzero(output, size); 121 121 } 122 122 -
pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c
r568 r582 151 151 152 152 153 pj_ memset(&si, 0, sizeof(pjmedia_sock_info));153 pj_bzero(&si, sizeof(pjmedia_sock_info)); 154 154 si.rtp_sock = si.rtcp_sock = PJ_INVALID_SOCKET; 155 155 … … 241 241 242 242 /* Setup RTP socket with the ioqueue */ 243 pj_ memset(&rtp_cb, 0, sizeof(rtp_cb));243 pj_bzero(&rtp_cb, sizeof(rtp_cb)); 244 244 rtp_cb.on_read_complete = &on_rx_rtp; 245 245 … … 265 265 266 266 /* Setup RTCP socket with ioqueue */ 267 pj_ memset(&rtcp_cb, 0, sizeof(rtcp_cb));267 pj_bzero(&rtcp_cb, sizeof(rtcp_cb)); 268 268 rtcp_cb.on_read_complete = &on_rx_rtcp; 269 269 -
pjproject/trunk/pjmedia/src/pjmedia/wav_player.c
r532 r582 493 493 status = fill_buffer(fport); 494 494 if (status != PJ_SUCCESS) { 495 pj_ memset(((char*)frame->buf)+endread, 0, frame_size-endread);495 pj_bzero(((char*)frame->buf)+endread, frame_size-endread); 496 496 return status; 497 497 } -
pjproject/trunk/pjmedia/src/pjmedia/wav_writer.c
r532 r582 115 115 116 116 /* Initialize WAVE header */ 117 pj_ memset(&wave_hdr, 0, sizeof(pjmedia_wave_hdr));117 pj_bzero(&wave_hdr, sizeof(pjmedia_wave_hdr)); 118 118 wave_hdr.riff_hdr.riff = PJMEDIA_RIFF_TAG; 119 119 wave_hdr.riff_hdr.file_len = 0; /* will be filled later */ -
pjproject/trunk/pjmedia/src/test/audio_tool.c
r159 r582 171 171 #endif 172 172 173 pj_ memset(&info, 0, sizeof(info));173 pj_bzero(&info, sizeof(info)); 174 174 info.bits_per_sample = 16; 175 175 info.bytes_per_frame = 2; … … 218 218 return -1; 219 219 220 pj_ memset(&info, 0, sizeof(info));220 pj_bzero(&info, sizeof(info)); 221 221 info.bits_per_sample = 16; 222 222 info.bytes_per_frame = 2; … … 264 264 } 265 265 266 pj_ memset(&skinfo, 0, sizeof(skinfo));266 pj_bzero(&skinfo, sizeof(skinfo)); 267 267 skinfo.rtp_sock = skinfo.rtcp_sock = pj_sock_socket(PJ_AF_INET, PJ_SOCK_DGRAM, 0, 0); 268 268 if (skinfo.rtp_sock == PJ_INVALID_SOCKET) { -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r563 r582 1740 1740 } 1741 1741 1742 pj_ memset(&buddy_cfg, 0, sizeof(pjsua_buddy_config));1742 pj_bzero(&buddy_cfg, sizeof(pjsua_buddy_config)); 1743 1743 1744 1744 buddy_cfg.uri = pj_str(buf); -
pjproject/trunk/pjsip-apps/src/samples/pjsip-perf.c
r581 r582 628 628 const char *transport_type; 629 629 630 pj_ memset(&addr, 0, sizeof(addr));630 pj_bzero(&addr, sizeof(addr)); 631 631 addr.sin_family = PJ_AF_INET; 632 632 addr.sin_addr.s_addr = 0; … … 697 697 698 698 /* Init the callback for INVITE session: */ 699 pj_ memset(&inv_cb, 0, sizeof(inv_cb));699 pj_bzero(&inv_cb, sizeof(inv_cb)); 700 700 inv_cb.on_state_changed = &call_on_state_changed; 701 701 inv_cb.on_new_session = &call_on_forked; -
pjproject/trunk/pjsip-apps/src/samples/simpleua.c
r483 r582 226 226 227 227 /* Init the callback for INVITE session: */ 228 pj_ memset(&inv_cb, 0, sizeof(inv_cb));228 pj_bzero(&inv_cb, sizeof(inv_cb)); 229 229 inv_cb.on_state_changed = &call_on_state_changed; 230 230 inv_cb.on_new_session = &call_on_forked; -
pjproject/trunk/pjsip-apps/src/samples/siprtp.c
r573 r582 303 303 pjsip_host_port addrname; 304 304 305 pj_ memset(&addr, 0, sizeof(addr));305 pj_bzero(&addr, sizeof(addr)); 306 306 addr.sin_family = PJ_AF_INET; 307 307 addr.sin_addr.s_addr = 0; … … 338 338 339 339 /* Init the callback for INVITE session: */ 340 pj_ memset(&inv_cb, 0, sizeof(inv_cb));340 pj_bzero(&inv_cb, sizeof(inv_cb)); 341 341 inv_cb.on_state_changed = &call_on_state_changed; 342 342 inv_cb.on_new_session = &call_on_forked; … … 1157 1157 1158 1158 /* Zero the payload */ 1159 pj_ memset(packet+hdrlen, 0, strm->bytes_per_frame);1159 pj_bzero(packet+hdrlen, strm->bytes_per_frame); 1160 1160 1161 1161 /* Send RTP packet */ -
pjproject/trunk/pjsip-apps/src/samples/sndtest.c
r531 r582 154 154 /* Skip frames when test is not started or test has finished */ 155 155 if (!test_data->running) { 156 pj_ memset(output, 0, size);156 pj_bzero(output, size); 157 157 return PJ_SUCCESS; 158 158 } … … 194 194 } 195 195 196 pj_ memset(output, 0, size);196 pj_bzero(output, size); 197 197 return PJ_SUCCESS; 198 198 } … … 381 381 * Init test parameters 382 382 */ 383 pj_ memset(&test_data, 0, sizeof(test_data));383 pj_bzero(&test_data, sizeof(test_data)); 384 384 test_data.dir = dir; 385 385 test_data.clock_rate = clock_rate; -
pjproject/trunk/pjsip-apps/src/samples/streamutil.c
r568 r582 128 128 129 129 /* Reset stream info. */ 130 pj_ memset(&info, 0, sizeof(info));130 pj_bzero(&info, sizeof(info)); 131 131 132 132 … … 231 231 232 232 233 pj_ memset(&remote_addr, 0, sizeof(remote_addr));233 pj_bzero(&remote_addr, sizeof(remote_addr)); 234 234 235 235 -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r542 r582 252 252 PJ_INLINE(void) pjsua_logging_config_default(pjsua_logging_config *cfg) 253 253 { 254 pj_ memset(cfg, 0, sizeof(*cfg));254 pj_bzero(cfg, sizeof(*cfg)); 255 255 256 256 cfg->msg_logging = PJ_TRUE; … … 428 428 PJ_INLINE(void) pjsua_config_default(pjsua_config *cfg) 429 429 { 430 pj_ memset(cfg, 0, sizeof(*cfg));430 pj_bzero(cfg, sizeof(*cfg)); 431 431 432 432 cfg->max_calls = 4; … … 504 504 PJ_INLINE(void) pjsua_msg_data_init(pjsua_msg_data *msg_data) 505 505 { 506 pj_ memset(msg_data, 0, sizeof(*msg_data));506 pj_bzero(msg_data, sizeof(*msg_data)); 507 507 pj_list_init(&msg_data->hdr_list); 508 508 } … … 704 704 PJ_INLINE(void) pjsua_stun_config_default(pjsua_stun_config *cfg) 705 705 { 706 pj_ memset(cfg, 0, sizeof(*cfg));706 pj_bzero(cfg, sizeof(*cfg)); 707 707 } 708 708 … … 747 747 PJ_INLINE(void) pjsua_transport_config_default(pjsua_transport_config *cfg) 748 748 { 749 pj_ memset(cfg, 0, sizeof(*cfg));749 pj_bzero(cfg, sizeof(*cfg)); 750 750 } 751 751 … … 1073 1073 PJ_INLINE(void) pjsua_acc_config_default(pjsua_acc_config *cfg) 1074 1074 { 1075 pj_ memset(cfg, 0, sizeof(*cfg));1075 pj_bzero(cfg, sizeof(*cfg)); 1076 1076 1077 1077 cfg->reg_timeout = PJSUA_REG_INTERVAL; … … 2059 2059 PJ_INLINE(void) pjsua_media_config_default(pjsua_media_config *cfg) 2060 2060 { 2061 pj_ memset(cfg, 0, sizeof(*cfg));2061 pj_bzero(cfg, sizeof(*cfg)); 2062 2062 2063 2063 cfg->clock_rate = 16000; -
pjproject/trunk/pjsip/src/pjsip/sip_endpoint.c
r581 r582 843 843 * rdata may be reused. 844 844 */ 845 pj_ memset(&rdata->endpt_info, 0, sizeof(rdata->endpt_info));845 pj_bzero(&rdata->endpt_info, sizeof(rdata->endpt_info)); 846 846 } 847 847 -
pjproject/trunk/pjsip/src/pjsip/sip_msg.c
r491 r582 969 969 PJ_UNUSED_ARG(pool); 970 970 971 pj_ memset(mem, 0, sizeof(pjsip_contact_hdr));971 pj_bzero(mem, sizeof(pjsip_contact_hdr)); 972 972 init_hdr(hdr, PJSIP_H_CONTACT, &contact_hdr_vptr); 973 973 hdr->expires = -1; … … 1098 1098 PJ_UNUSED_ARG(pool); 1099 1099 1100 pj_ memset(mem, 0, sizeof(pjsip_ctype_hdr));1100 pj_bzero(mem, sizeof(pjsip_ctype_hdr)); 1101 1101 init_hdr(hdr, PJSIP_H_CONTENT_TYPE, &ctype_hdr_vptr); 1102 1102 return hdr; … … 1214 1214 PJ_UNUSED_ARG(pool); 1215 1215 1216 pj_ memset(mem, 0, sizeof(pjsip_from_hdr));1216 pj_bzero(mem, sizeof(pjsip_from_hdr)); 1217 1217 init_hdr(hdr, PJSIP_H_FROM, &fromto_hdr_vptr); 1218 1218 pj_list_init(&hdr->other_param); … … 1233 1233 PJ_UNUSED_ARG(pool); 1234 1234 1235 pj_ memset(mem, 0, sizeof(pjsip_to_hdr));1235 pj_bzero(mem, sizeof(pjsip_to_hdr)); 1236 1236 init_hdr(hdr, PJSIP_H_TO, &fromto_hdr_vptr); 1237 1237 pj_list_init(&hdr->other_param); … … 1596 1596 PJ_UNUSED_ARG(pool); 1597 1597 1598 pj_ memset(mem, 0, sizeof(pjsip_via_hdr));1598 pj_bzero(mem, sizeof(pjsip_via_hdr)); 1599 1599 init_hdr(hdr, PJSIP_H_VIA, &via_hdr_vptr); 1600 1600 hdr->ttl_param = -1; -
pjproject/trunk/pjsip/src/pjsip/sip_transport.c
r576 r582 596 596 /* Init. */ 597 597 tp->tpmgr = mgr; 598 pj_ memset(&tp->idle_timer, 0, sizeof(tp->idle_timer));598 pj_bzero(&tp->idle_timer, sizeof(tp->idle_timer)); 599 599 tp->idle_timer.user_data = tp; 600 600 tp->idle_timer.cb = &transport_idle_callback; … … 927 927 * to report some errors. 928 928 */ 929 pj_ memset(&rdata->msg_info, 0, sizeof(rdata->msg_info));929 pj_bzero(&rdata->msg_info, sizeof(rdata->msg_info)); 930 930 pj_list_init(&rdata->msg_info.parse_err); 931 931 rdata->msg_info.msg_buf = current_pkt; … … 1098 1098 pj_sockaddr_in *addr = (pj_sockaddr_in*)&key.addr; 1099 1099 1100 pj_ memset(addr, 0, sizeof(pj_sockaddr_in));1100 pj_bzero(addr, sizeof(pj_sockaddr_in)); 1101 1101 key_len = sizeof(key.type) + sizeof(pj_sockaddr_in); 1102 1102 transport = pj_hash_get(mgr->table, &key, key_len, NULL); … … 1109 1109 pj_sockaddr_in *addr = (pj_sockaddr_in*)&key.addr; 1110 1110 1111 pj_ memset(addr, 0, sizeof(pj_sockaddr_in));1111 pj_bzero(addr, sizeof(pj_sockaddr_in)); 1112 1112 addr->sin_family = PJ_AF_INET; 1113 1113 -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tcp.c
r563 r582 271 271 272 272 /* Register socket to ioqeuue */ 273 pj_ memset(&listener_cb, 0, sizeof(listener_cb));273 pj_bzero(&listener_cb, sizeof(listener_cb)); 274 274 listener_cb.on_accept_complete = &on_accept_complete; 275 275 status = pj_ioqueue_register_sock(pool, pjsip_endpt_get_ioqueue(endpt), … … 475 475 476 476 /* Register socket to ioqueue */ 477 pj_ memset(&tcp_callback, 0, sizeof(pj_ioqueue_callback));477 pj_bzero(&tcp_callback, sizeof(pj_ioqueue_callback)); 478 478 tcp_callback.on_read_complete = &on_read_complete; 479 479 tcp_callback.on_write_complete = &on_write_complete; -
pjproject/trunk/pjsip/src/pjsip/sip_uri.c
r127 r582 207 207 PJ_DEF(void) pjsip_sip_uri_init(pjsip_sip_uri *url, int secure) 208 208 { 209 pj_ memset(url, 0, sizeof(*url));209 pj_bzero(url, sizeof(*url)); 210 210 url->ttl_param = -1; 211 211 url->vptr = secure ? &sips_url_vptr : &sip_url_vptr; -
pjproject/trunk/pjsip/src/pjsip/sip_util.c
r499 r582 706 706 * Otherwise we're in trouble (i.e. there's no host part in tel: URL). 707 707 */ 708 pj_ memset(dest_info, 0, sizeof(*dest_info));708 pj_bzero(dest_info, sizeof(*dest_info)); 709 709 710 710 if (PJSIP_URI_SCHEME_IS_SIPS(target_uri)) { -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r563 r582 549 549 PJ_ASSERT_RETURN(info != NULL, PJ_EINVAL); 550 550 551 pj_ memset(info, 0, sizeof(pjsua_acc_info));551 pj_bzero(info, sizeof(pjsua_acc_info)); 552 552 553 553 PJ_ASSERT_RETURN(acc_id>=0 && acc_id<(int)PJ_ARRAY_SIZE(pjsua_var.acc), -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r574 r582 105 105 106 106 /* Initialize invite session callback. */ 107 pj_ memset(&inv_cb, 0, sizeof(inv_cb));107 pj_bzero(&inv_cb, sizeof(inv_cb)); 108 108 inv_cb.on_state_changed = &pjsua_call_on_state_changed; 109 109 inv_cb.on_new_session = &pjsua_call_on_forked; … … 563 563 PJ_EINVAL); 564 564 565 pj_ memset(info, 0, sizeof(*info));565 pj_bzero(info, sizeof(*info)); 566 566 567 567 PJSUA_LOCK(); … … 2129 2129 2130 2130 /* Init callback */ 2131 pj_ memset(&xfer_cb, 0, sizeof(xfer_cb));2131 pj_bzero(&xfer_cb, sizeof(xfer_cb)); 2132 2132 xfer_cb.on_evsub_state = &xfer_on_evsub_state; 2133 2133 -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r563 r582 668 668 pjsua_normalize_stun_config(&stun); 669 669 } else { 670 pj_ memset(&stun, 0, sizeof(pjsua_stun_config));670 pj_bzero(&stun, sizeof(pjsua_stun_config)); 671 671 } 672 672 … … 699 699 } 700 700 701 pj_ memset(p_pub_addr, 0, sizeof(pj_sockaddr_in));701 pj_bzero(p_pub_addr, sizeof(pj_sockaddr_in)); 702 702 p_pub_addr->sin_family = PJ_AF_INET; 703 703 p_pub_addr->sin_port = pj_htons((pj_uint16_t)port); … … 911 911 struct transport_data *t = &pjsua_var.tpdata[id]; 912 912 913 pj_ memset(info, 0, sizeof(*info));913 pj_bzero(info, sizeof(*info)); 914 914 915 915 /* Make sure id is in range. */ … … 1077 1077 char *pos; 1078 1078 1079 pj_ memset(media_type, 0, sizeof(*media_type));1079 pj_bzero(media_type, sizeof(*media_type)); 1080 1080 1081 1081 pj_strdup_with_null(pool, &tmp, mime); -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r541 r582 267 267 hostname = pj_gethostname(); 268 268 269 pj_ memset( &addr, 0, sizeof(addr));269 pj_bzero( &addr, sizeof(addr)); 270 270 addr.sin_family = PJ_AF_INET; 271 271 status = pj_sockaddr_in_set_str_addr( &addr, hostname); … … 553 553 return status; 554 554 555 pj_ memset(info, 0, sizeof(*info));555 pj_bzero(info, sizeof(*info)); 556 556 info->slot_id = id; 557 557 info->name = cinfo.name; -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
r512 r582 86 86 PJSUA_LOCK(); 87 87 88 pj_ memset(info, 0, sizeof(pjsua_buddy_info));88 pj_bzero(info, sizeof(pjsua_buddy_info)); 89 89 90 90 buddy = &pjsua_var.buddy[buddy_id]; … … 130 130 static void reset_buddy(pjsua_buddy_id id) 131 131 { 132 pj_ memset(&pjsua_var.buddy[id], 0, sizeof(pjsua_var.buddy[id]));132 pj_bzero(&pjsua_var.buddy[id], sizeof(pjsua_var.buddy[id])); 133 133 pjsua_var.buddy[id].index = id; 134 134 } … … 480 480 481 481 /* Init callback: */ 482 pj_ memset(&pres_cb, 0, sizeof(pres_cb));482 pj_bzero(&pres_cb, sizeof(pres_cb)); 483 483 pres_cb.on_evsub_state = &pres_evsub_on_srv_state; 484 484 … … 523 523 524 524 /* Set our online status: */ 525 pj_ memset(&pres_status, 0, sizeof(pres_status));525 pj_bzero(&pres_status, sizeof(pres_status)); 526 526 pres_status.info_cnt = 1; 527 527 pres_status.info[0].basic_open = pjsua_var.acc[acc_id].online_status; -
pjproject/trunk/pjsip/src/test-pjsip/msg_test.c
r563 r582 712 712 713 713 714 pj_ memset(&var, 0, sizeof(var));714 pj_bzero(&var, sizeof(var)); 715 715 zero.u64 = 0; 716 716 -
pjproject/trunk/pjsip/src/test-pjsip/transport_test.c
r563 r582 555 555 pj_str_t str_id = { buf, 1 }; 556 556 557 pj_ memset(&rt_test_data[i], 0, sizeof(rt_test_data[i]));557 pj_bzero(&rt_test_data[i], sizeof(rt_test_data[i])); 558 558 559 559 /* Init timer entry */ … … 614 614 615 615 /* Gather statistics. */ 616 pj_ memset(&total_time, 0, sizeof(total_time));617 pj_ memset(&zero_time, 0, sizeof(zero_time));616 pj_bzero(&total_time, sizeof(total_time)); 617 pj_bzero(&zero_time, sizeof(zero_time)); 618 618 usec_rt = total_sent = total_recv = 0; 619 619 for (i=0; i<THREADS; ++i) { -
pjproject/trunk/pjsip/src/test-pjsip/tsx_bench.c
r563 r582 52 52 tsx = pj_pool_zalloc(request->pool, working_set * sizeof(pj_pool_t*)); 53 53 54 pj_ memset(&mod_tsx_user, 0, sizeof(mod_tsx_user));54 pj_bzero(&mod_tsx_user, sizeof(mod_tsx_user)); 55 55 mod_tsx_user.id = -1; 56 56 … … 122 122 123 123 /* Create "dummy" rdata from the tdata */ 124 pj_ memset(&rdata, 0, sizeof(pjsip_rx_data));124 pj_bzero(&rdata, sizeof(pjsip_rx_data)); 125 125 rdata.tp_info.pool = request->pool; 126 126 rdata.msg_info.msg = request->msg; … … 144 144 tsx = pj_pool_zalloc(request->pool, working_set * sizeof(pj_pool_t*)); 145 145 146 pj_ memset(&mod_tsx_user, 0, sizeof(mod_tsx_user));146 pj_bzero(&mod_tsx_user, sizeof(mod_tsx_user)); 147 147 mod_tsx_user.id = -1; 148 148 -
pjproject/trunk/pjsip/src/test-pjsip/txdata_test.c
r563 r582 266 266 267 267 /* Modify dummy_rdata to simulate receiving response. */ 268 pj_ memset(&dummy_rdata, 0, sizeof(dummy_rdata));268 pj_bzero(&dummy_rdata, sizeof(dummy_rdata)); 269 269 dummy_rdata.msg_info.msg = response->msg; 270 270 dummy_rdata.msg_info.to = HFIND(response->msg, to, TO); … … 633 633 634 634 for (i=0; i<LOOP; i+=COUNT) { 635 pj_ memset(tdata, 0, sizeof(tdata));635 pj_bzero(tdata, sizeof(tdata)); 636 636 637 637 pj_get_timestamp(&t1); … … 712 712 713 713 /* Create "dummy" rdata from the tdata */ 714 pj_ memset(&rdata, 0, sizeof(pjsip_rx_data));714 pj_bzero(&rdata, sizeof(pjsip_rx_data)); 715 715 rdata.tp_info.pool = request->pool; 716 716 rdata.msg_info.msg = request->msg; … … 727 727 728 728 for (i=0; i<LOOP; i+=COUNT) { 729 pj_ memset(tdata, 0, sizeof(tdata));729 pj_bzero(tdata, sizeof(tdata)); 730 730 731 731 pj_get_timestamp(&t1); -
pjproject/trunk/pjsip/src/test-pjsip/uri_test.c
r563 r582 824 824 pj_highprec_t avg_parse, avg_print, avg_cmp, kbytes; 825 825 826 pj_ memset(&var, 0, sizeof(var));826 pj_bzero(&var, sizeof(var)); 827 827 828 828 zero.u32.hi = zero.u32.lo = 0;
Note: See TracChangeset
for help on using the changeset viewer.