[or-cvs] Fix cast warning in tor-resolve.c
Nick Mathewson
nickm at seul.org
Sun Nov 14 18:14:18 UTC 2004
Update of /home/or/cvsroot/tor/src/tools
In directory moria.mit.edu:/tmp/cvs-serv1955/src/tools
Modified Files:
tor-resolve.c
Log Message:
Fix cast warning in tor-resolve.c
Index: tor-resolve.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/tools/tor-resolve.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- tor-resolve.c 9 Nov 2004 20:04:00 -0000 1.5
+++ tor-resolve.c 14 Nov 2004 18:14:15 -0000 1.6
@@ -56,8 +56,8 @@
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);
More information about the tor-commits
mailing list