Changeset 557 for pjproject/trunk/pjlib/src/pjlib-test/sock.c
- Timestamp:
- Jun 28, 2006 11:10:02 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/sock.c
r509 r557 79 79 unsigned char *p; 80 80 pj_in_addr addr; 81 char zero[64]; 82 pj_sockaddr_in addr2; 81 83 const pj_str_t *hostname; 82 84 … … 104 106 return -30; 105 107 108 /* Test that pj_sockaddr_in_init() initialize the whole structure, 109 * including sin_zero. 110 */ 111 pj_sockaddr_in_init(&addr2, 0, 1000); 112 pj_memset(zero, 0, sizeof(zero)); 113 if (pj_memcmp(addr2.sin_zero, zero, sizeof(addr2.sin_zero)) != 0) 114 return -35; 115 106 116 /* pj_gethostname() */ 107 117 hostname = pj_gethostname(); … … 113 123 114 124 /* pj_gethostaddr() */ 125 115 126 116 127 return 0;
Note: See TracChangeset
for help on using the changeset viewer.