]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix cast warning in tor-resolve.c
authorNick Mathewson <nickm@torproject.org>
Sun, 14 Nov 2004 18:14:15 +0000 (18:14 +0000)
committerNick Mathewson <nickm@torproject.org>
Sun, 14 Nov 2004 18:14:15 +0000 (18:14 +0000)
svn:r2857

src/tools/tor-resolve.c

index a12df003773669d681116fdfb88bc3d7e4da2085..5481ad0c42428e966d0d1c380c8814d3c653a2e7 100644 (file)
@@ -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);