From: Matthias Wachs Date: Mon, 19 Mar 2012 17:14:17 +0000 (+0000) Subject: - tests pass X-Git-Tag: initial-import-from-subversion-38251~14192 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=995f39243d257b7299f5b672214c20705e062b3f;p=oweals%2Fgnunet.git - tests pass --- diff --git a/src/namestore/test_namestore_api_zone_to_name.c b/src/namestore/test_namestore_api_zone_to_name.c index 5fb984dc1..6936142da 100644 --- a/src/namestore/test_namestore_api_zone_to_name.c +++ b/src/namestore/test_namestore_api_zone_to_name.c @@ -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);