diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-14 18:14:15 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-14 18:14:15 +0000 |
commit | 05d5996410bc6473a9088b119f222b6a37a8d8fb (patch) | |
tree | 84196b92c76cf297eb408542801334cfb3dbd06e /src/tools | |
parent | e078dc296fa0ebd691497bd9de099430ad7c7600 (diff) | |
download | tor-05d5996410bc6473a9088b119f222b6a37a8d8fb.tar.gz tor-05d5996410bc6473a9088b119f222b6a37a8d8fb.zip |
Fix cast warning in tor-resolve.c
svn:r2857
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/tor-resolve.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index a12df00377..5481ad0c42 100644 --- a/src/tools/tor-resolve.c +++ b/src/tools/tor-resolve.c @@ -56,8 +56,8 @@ build_socks4a_resolve_request(char **out, len = 8 + strlen(username) + 1 + strlen(hostname) + 1; *out = tor_malloc(len); - (*out)[0] = 4; /* SOCKS version 4 */ - (*out)[1] = 0xF0; /* Command: resolve. */ + (*out)[0] = 4; /* SOCKS version 4 */ + (*out)[1] = '\xF0'; /* Command: resolve. */ set_uint16((*out)+2, htons(0)); /* port: 0. */ set_uint32((*out)+4, htonl(0x00000001u)); /* addr: 0.0.0.1 */ strcpy((*out)+8, username); |