[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r9274: make tor-resolve -x work on intel-endian platforms too (tor/trunk/src/tools)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r9274: make tor-resolve -x work on intel-endian platforms too (tor/trunk/src/tools)
- From: arma@xxxxxxxx
- Date: Fri, 5 Jan 2007 23:48:35 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Fri, 05 Jan 2007 23:48:42 -0500
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Author: arma
Date: 2007-01-05 23:48:34 -0500 (Fri, 05 Jan 2007)
New Revision: 9274
Modified:
tor/trunk/src/tools/tor-resolve.c
Log:
make tor-resolve -x work on intel-endian platforms too
Modified: tor/trunk/src/tools/tor-resolve.c
===================================================================
--- tor/trunk/src/tools/tor-resolve.c 2007-01-05 23:34:31 UTC (rev 9273)
+++ tor/trunk/src/tools/tor-resolve.c 2007-01-06 04:48:34 UTC (rev 9274)
@@ -85,7 +85,7 @@
(*out)[2] = 0; /* reserved. */
(*out)[3] = is_ip_address ? 1 : 3;
if (is_ip_address) {
- set_uint32((*out)+4, htonl(in.s_addr));
+ set_uint32((*out)+4, in.s_addr);
} else {
(*out)[4] = (char)(uint8_t)(addrlen - 1);
memcpy((*out)+5, hostname, addrlen - 1);