From 84b6e8491d8712f772a2297d59b2a1f4f21427fa Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Thu, 22 Mar 2012 18:43:42 +0000 Subject: [PATCH] -fix --- src/namestore/namestore_common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/namestore/namestore_common.c b/src/namestore/namestore_common.c index 117d96a57..24711ba47 100644 --- a/src/namestore/namestore_common.c +++ b/src/namestore/namestore_common.c @@ -378,7 +378,7 @@ GNUNET_NAMESTORE_string_to_value (uint32_t type, { struct in_addr value_a; struct in6_addr value_aaaa; - GNUNET_HashCode pkey; + struct GNUNET_CRYPTO_ShortHashCode pkey; switch (type) { @@ -424,11 +424,11 @@ GNUNET_NAMESTORE_string_to_value (uint32_t type, return GNUNET_OK; case GNUNET_NAMESTORE_TYPE_PKEY: if (GNUNET_OK != - GNUNET_CRYPTO_hash_from_string (s, &pkey)) + GNUNET_CRYPTO_short_hash_from_string (s, &pkey)) return GNUNET_SYSERR; - *data = GNUNET_malloc (sizeof (GNUNET_HashCode)); + *data = GNUNET_malloc (sizeof (struct GNUNET_CRYPTO_ShortHashCode)); memcpy (*data, &pkey, sizeof (pkey)); - *data_size = sizeof (GNUNET_HashCode); + *data_size = sizeof (struct GNUNET_CRYPTO_ShortHashCode); return GNUNET_OK; case GNUNET_NAMESTORE_TYPE_PSEU: *data = GNUNET_strdup (s); -- 2.25.1