Changeset 582 for pjproject/trunk/pjlib/src/pjlib-test/sock.c
- Timestamp:
- Jul 3, 2006 3:19:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note: See TracChangeset
for help on using the changeset viewer.