- Timestamp:
- Aug 31, 2012 6:29:13 AM (12 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_transport.c
r4218 r4239 1180 1180 { 1181 1181 char tmp_buf[PJ_INET6_ADDRSTRLEN+10]; 1182 pj_str_t tmp_str = { tmp_buf, 0 };1182 pj_str_t tmp_str; 1183 1183 pj_status_t status = PJSIP_EUNSUPTRANSPORT; 1184 1184 unsigned flag; … … 1187 1187 PJ_ASSERT_RETURN(tpmgr && pool && prm, PJ_EINVAL); 1188 1188 1189 pj_strset(&tmp_str, tmp_buf, 0); 1189 1190 prm->ret_addr.slen = 0; 1190 1191 prm->ret_port = 0; … … 1198 1199 const pjsip_transport *tp = prm->tp_sel->u.transport; 1199 1200 if (prm->local_if) { 1200 status = get_net_interface( tp->key.type, &prm->dst_host,1201 1201 status = get_net_interface((pjsip_transport_type_e)tp->key.type, 1202 &prm->dst_host, &tmp_str); 1202 1203 if (status != PJ_SUCCESS) 1203 1204 goto on_return; … … 1207 1208 } else { 1208 1209 pj_strdup(pool, &prm->ret_addr, &tp->local_name.host); 1209 prm->ret_port = tp->local_name.port;1210 prm->ret_port = (pj_uint16_t)tp->local_name.port; 1210 1211 } 1211 1212 status = PJ_SUCCESS; … … 1224 1225 &prm->tp_sel->u.listener->addr_name.host); 1225 1226 } 1226 prm->ret_port = prm->tp_sel->u.listener->addr_name.port;1227 prm->ret_port = (pj_uint16_t)prm->tp_sel->u.listener->addr_name.port; 1227 1228 status = PJ_SUCCESS; 1228 1229 … … 1246 1247 if (status == PJ_SUCCESS) { 1247 1248 if (prm->local_if) { 1248 status = get_net_interface(tp->key.type, &prm->dst_host, 1249 &tmp_str); 1249 status = get_net_interface((pjsip_transport_type_e) 1250 tp->key.type, 1251 &prm->dst_host, &tmp_str); 1250 1252 if (status != PJ_SUCCESS) 1251 1253 goto on_return; … … 1255 1257 } else { 1256 1258 pj_strdup(pool, &prm->ret_addr, &tp->local_name.host); 1257 prm->ret_port = tp->local_name.port;1259 prm->ret_port = (pj_uint16_t)tp->local_name.port; 1258 1260 } 1259 1261 … … 1284 1286 pj_strdup(pool, &prm->ret_addr, &f->addr_name.host); 1285 1287 } 1286 prm->ret_port = f->addr_name.port;1288 prm->ret_port = (pj_uint16_t)f->addr_name.port; 1287 1289 status = PJ_SUCCESS; 1288 1290 } -
pjproject/trunk/third_party/BaseClasses/wxutil.cpp
r4072 r4239 59 59 // to be processed while we wait 60 60 DWORD dwWait; 61 DWORD dwStartTime ;61 DWORD dwStartTime = 0; 62 62 63 63 // set the waiting period. … … 604 604 BOOL bPeeked = FALSE; 605 605 DWORD dwResult; 606 DWORD dwStart ;607 DWORD dwThreadPriority ;606 DWORD dwStart = 0; 607 DWORD dwThreadPriority = THREAD_PRIORITY_HIGHEST; 608 608 609 609 static UINT uMsgId = 0;
Note: See TracChangeset
for help on using the changeset viewer.