Make bnbt compile on i386 master
authorDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Thu, 11 Oct 2007 23:46:45 +0000 (19:46 -0400)
committerDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Thu, 11 Oct 2007 23:46:45 +0000 (19:46 -0400)
util.cpp

index 8e9ed45..208acad 100644 (file)
--- a/util.cpp
+++ b/util.cpp
 \r
 #include <stdarg.h>\r
 \r
 \r
 #include <stdarg.h>\r
 \r
+#include "sha1.h"\r
 #include "bnbt.h"\r
 #include "atom.h"\r
 #include "bencode.h"\r
 #include "bnbt.h"\r
 #include "atom.h"\r
 #include "bencode.h"\r
-#include "sha1.h"\r
 #include "tracker.h"\r
 #include "util.h"\r
 \r
 #include "tracker.h"\r
 #include "util.h"\r
 \r
@@ -749,7 +749,7 @@ string UTIL_InfoHash( CAtom *pTorrent )
 \r
                        CSHA1 hasher;\r
 \r
 \r
                        CSHA1 hasher;\r
 \r
-                       hasher.Update( (unsigned char *)strData.c_str( ), strData.size( ) );\r
+                       hasher.Update( (UINT_8 *)strData.c_str( ), strData.size( ) );\r
                        hasher.Final( );\r
 \r
                        char szInfoHash[64];\r
                        hasher.Final( );\r
 \r
                        char szInfoHash[64];\r