[or-cvs] r9399: Use set_uint16/32 instead of raw assignments in order to mak (in tor/trunk: . src/or)
nickm at seul.org
nickm at seul.org
Wed Jan 24 23:42:02 UTC 2007
Author: nickm
Date: 2007-01-24 18:42:00 -0500 (Wed, 24 Jan 2007)
New Revision: 9399
Modified:
tor/trunk/
tor/trunk/src/or/circuitbuild.c
Log:
r11493 at catbus: nickm | 2007-01-24 18:41:52 -0500
Use set_uint16/32 instead of raw assignments in order to make gcc happier.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r11493] on 8246c3cf-6607-4228-993b-4d95d33730f1
Modified: tor/trunk/src/or/circuitbuild.c
===================================================================
--- tor/trunk/src/or/circuitbuild.c 2007-01-24 23:41:56 UTC (rev 9398)
+++ tor/trunk/src/or/circuitbuild.c 2007-01-24 23:42:00 UTC (rev 9399)
@@ -622,8 +622,8 @@
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,
More information about the tor-commits
mailing list