- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjlib-util-test/resolver_test.c
r3553 r4537 112 112 } else { 113 113 if (tab->count < MAX_LABEL) { 114 tab->a[tab->count].pos = ( p-pkt);114 tab->a[tab->count].pos = (unsigned)(p-pkt); 115 115 tab->a[tab->count].label.ptr = (char*)(p+1); 116 116 tab->a[tab->count].label.slen = name->slen; … … 137 137 pj_memcpy(p+1, label.ptr, label.slen); 138 138 139 size -= ( label.slen+1);139 size -= (int)(label.slen+1); 140 140 p += (label.slen+1); 141 141 … … 150 150 *p++ = '\0'; 151 151 152 return p-pos;152 return (int)(p-pos); 153 153 } 154 154 … … 233 233 } 234 234 235 return p-pos;235 return (int)(p-pos); 236 236 } 237 237 … … 320 320 } 321 321 322 return p - pkt;322 return (int)(p - pkt); 323 323 } 324 324 … … 340 340 PJ_FD_SET(srv->sock, &rset); 341 341 342 rc = pj_sock_select( srv->sock+1, &rset, NULL, NULL, &timeout);342 rc = pj_sock_select((int)(srv->sock+1), &rset, NULL, NULL, &timeout); 343 343 if (rc != 1) 344 344 continue; … … 356 356 srv->pkt_count++; 357 357 358 rc = pj_dns_parse_packet(pool, pkt, pkt_len, &req);358 rc = pj_dns_parse_packet(pool, pkt, (unsigned)pkt_len, &req); 359 359 if (rc != PJ_SUCCESS) { 360 360 app_perror("server error parsing packet", rc);
Note: See TracChangeset
for help on using the changeset viewer.