use uint32_t for mutator
authorChristian Grothoff <christian@grothoff.org>
Tue, 15 Feb 2011 15:30:23 +0000 (15:30 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 15 Feb 2011 15:30:23 +0000 (15:30 +0000)
src/block/block.c
src/include/gnunet_block_lib.h

index bc597739e0dc215ce1dfb2f9e692d8e662e42f43..24bde02acb2d3bd0438987d81fb585c599eddcba 100644 (file)
@@ -73,13 +73,13 @@ struct GNUNET_BLOCK_Context
  */
 void
 GNUNET_BLOCK_mingle_hash (const GNUNET_HashCode * in,
-                         int32_t mingle_number, 
+                         uint32_t mingle_number, 
                          GNUNET_HashCode * hc)
 {
   GNUNET_HashCode m;
 
   GNUNET_CRYPTO_hash (&mingle_number, 
-                     sizeof (int32_t), 
+                     sizeof (uint32_t), 
                      &m);
   GNUNET_CRYPTO_hash_xor (&m, in, hc);
 }
index 21a58cd4007e99cca400e7245a29211d11b324e8..74ae2d32245c98352652864a46c1e103468a7a95 100644 (file)
@@ -163,7 +163,7 @@ struct GNUNET_BLOCK_Context;
  */
 void
 GNUNET_BLOCK_mingle_hash (const GNUNET_HashCode * in,
-                         int32_t mingle_number, 
+                         uint32_t mingle_number, 
                          GNUNET_HashCode * hc);