summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-01-24 23:42:00 +0000
committerNick Mathewson <nickm@torproject.org>2007-01-24 23:42:00 +0000
commit71f47320f821124012ebebf241ff362336019aca (patch)
tree50f0b5f731d76b967dac4496dc60098693192e99 /src/or/circuitbuild.c
parentb0b96c9091b7b825e7943532de1f869124f903a4 (diff)
downloadtor-71f47320f821124012ebebf241ff362336019aca.tar.gz
tor-71f47320f821124012ebebf241ff362336019aca.zip
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
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 73960fec49..74096300b0 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -622,8 +622,8 @@ circuit_send_next_onion_skin(origin_circuit_t *circ)
return 0;
}
- *(uint32_t*)payload = htonl(hop->extend_info->addr);
- *(uint16_t*)(payload+4) = htons(hop->extend_info->port);
+ set_uint32(payload, htonl(hop->extend_info->addr));
+ set_uint16(payload+4, htons(hop->extend_info->port));
onionskin = payload+2+4;
memcpy(payload+2+4+ONIONSKIN_CHALLENGE_LEN,