r11493@catbus: nickm | 2007-01-24 18:41:52 -0500

Use set_uint16/32 instead of raw assignments in order to make gcc happier.


svn:r9399
This commit is contained in:
Nick Mathewson 2007-01-24 23:42:00 +00:00
parent b0b96c9091
commit 71f47320f8

View File

@ -622,8 +622,8 @@ circuit_send_next_onion_skin(origin_circuit_t *circ)
return 0; return 0;
} }
*(uint32_t*)payload = htonl(hop->extend_info->addr); set_uint32(payload, htonl(hop->extend_info->addr));
*(uint16_t*)(payload+4) = htons(hop->extend_info->port); set_uint16(payload+4, htons(hop->extend_info->port));
onionskin = payload+2+4; onionskin = payload+2+4;
memcpy(payload+2+4+ONIONSKIN_CHALLENGE_LEN, memcpy(payload+2+4+ONIONSKIN_CHALLENGE_LEN,