Mercurial > pidgin
comparison src/proxy.c @ 8477:d8c2a7613290
[gaim-migrate @ 9210]
read and write a size_t, which should work regardless of platform
committer: Tailor Script <tailor@pidgin.im>
| author | Nathan Walp <nwalp@pidgin.im> |
|---|---|
| date | Sat, 20 Mar 2004 23:46:22 +0000 |
| parents | 4bb3d8dc717e |
| children | c3414c5faf86 |
comparison
equal
deleted
inserted
replaced
| 8476:e8aa46291f64 | 8477:d8c2a7613290 |
|---|---|
| 547 continue; | 547 continue; |
| 548 } | 548 } |
| 549 write(child_out[1], &zero, sizeof(zero)); | 549 write(child_out[1], &zero, sizeof(zero)); |
| 550 tmp = res; | 550 tmp = res; |
| 551 while(res) { | 551 while(res) { |
| 552 write(child_out[1], &(res->ai_addrlen), sizeof(res->ai_addrlen)); | 552 size_t ai_addrlen = res->ai_addrlen; |
| 553 write(child_out[1], &ai_addrlen, sizeof(ai_addrlen)); | |
| 553 write(child_out[1], res->ai_addr, res->ai_addrlen); | 554 write(child_out[1], res->ai_addr, res->ai_addrlen); |
| 554 res = res->ai_next; | 555 res = res->ai_next; |
| 555 } | 556 } |
| 556 freeaddrinfo(tmp); | 557 freeaddrinfo(tmp); |
| 557 write(child_out[1], &zero, sizeof(zero)); | 558 write(child_out[1], &zero, sizeof(zero)); |
