Changeset 1929 for pjproject/trunk/pjnath/src/pjturn-client/client_main.c
- Timestamp:
- Apr 14, 2008 4:04:30 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjturn-client/client_main.c
r1914 r1929 122 122 * Create peers 123 123 */ 124 for (i=0; i< PJ_ARRAY_SIZE(g.peer); ++i) {124 for (i=0; i<(int)PJ_ARRAY_SIZE(g.peer); ++i) { 125 125 int len; 126 126 pj_sockaddr addr; … … 203 203 /* Poll peer sockets */ 204 204 PJ_FD_ZERO(&readset); 205 for (i=0; i< PJ_ARRAY_SIZE(g.peer); ++i) {205 for (i=0; i<(int)PJ_ARRAY_SIZE(g.peer); ++i) { 206 206 PJ_FD_SET(g.peer[i].sock, &readset); 207 207 if (g.peer[i].sock > n) … … 213 213 214 214 /* Handle incoming data on peer socket */ 215 for (i=0; i< PJ_ARRAY_SIZE(g.peer); ++i) {215 for (i=0; i<(int)PJ_ARRAY_SIZE(g.peer); ++i) { 216 216 char buf[128]; 217 217 pj_ssize_t len; … … 267 267 cred.data.static_cred.realm = pj_str(o.realm); 268 268 cred.data.static_cred.username = pj_str(o.user_name); 269 cred.data.static_cred.data_type = 0;269 cred.data.static_cred.data_type = PJ_STUN_PASSWD_PLAIN; 270 270 cred.data.static_cred.data = pj_str(o.password); 271 271 //cred.data.static_cred.nonce = pj_str(o.nonce);
Note: See TracChangeset
for help on using the changeset viewer.