- tests pass
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 19 Mar 2012 17:14:17 +0000 (17:14 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 19 Mar 2012 17:14:17 +0000 (17:14 +0000)
src/namestore/test_namestore_api_zone_to_name.c

index 5fb984dc16ec710cc3f05b029757a944664bfb8e..6936142dae754859a78dc8b335ae5170d682b1c6 100644 (file)
@@ -236,9 +236,9 @@ run (void *cls, char *const *args, const char *cfgfile,
   struct GNUNET_NAMESTORE_RecordData rd;
   rd.expiration = GNUNET_TIME_absolute_get();
   rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY;
-  rd.data_size = sizeof (GNUNET_HashCode);
-  rd.data = GNUNET_malloc(sizeof (GNUNET_HashCode));
-  memcpy ((char *) rd.data, &s_zone_value, sizeof (GNUNET_HashCode));
+  rd.data_size = sizeof (struct GNUNET_CRYPTO_ShortHashCode);
+  rd.data = GNUNET_malloc(sizeof (struct GNUNET_CRYPTO_ShortHashCode));
+  memcpy ((char *) rd.data, &s_zone_value, sizeof (struct GNUNET_CRYPTO_ShortHashCode));
 
   start_arm (cfgfile);
   GNUNET_assert (arm != NULL);