aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-22 18:43:42 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-22 18:43:42 +0000
commit84b6e8491d8712f772a2297d59b2a1f4f21427fa (patch)
tree5e518bc0aec345c0c355bba867f0e4c102572181 /src
parente35e4386f35b3aa98148fac3900726acc156cc36 (diff)
downloadgnunet-84b6e8491d8712f772a2297d59b2a1f4f21427fa.tar.gz
gnunet-84b6e8491d8712f772a2297d59b2a1f4f21427fa.zip
-fix
Diffstat (limited to 'src')
-rw-r--r--src/namestore/namestore_common.c8
1 files 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,
378{ 378{
379 struct in_addr value_a; 379 struct in_addr value_a;
380 struct in6_addr value_aaaa; 380 struct in6_addr value_aaaa;
381 GNUNET_HashCode pkey; 381 struct GNUNET_CRYPTO_ShortHashCode pkey;
382 382
383 switch (type) 383 switch (type)
384 { 384 {
@@ -424,11 +424,11 @@ GNUNET_NAMESTORE_string_to_value (uint32_t type,
424 return GNUNET_OK; 424 return GNUNET_OK;
425 case GNUNET_NAMESTORE_TYPE_PKEY: 425 case GNUNET_NAMESTORE_TYPE_PKEY:
426 if (GNUNET_OK != 426 if (GNUNET_OK !=
427 GNUNET_CRYPTO_hash_from_string (s, &pkey)) 427 GNUNET_CRYPTO_short_hash_from_string (s, &pkey))
428 return GNUNET_SYSERR; 428 return GNUNET_SYSERR;
429 *data = GNUNET_malloc (sizeof (GNUNET_HashCode)); 429 *data = GNUNET_malloc (sizeof (struct GNUNET_CRYPTO_ShortHashCode));
430 memcpy (*data, &pkey, sizeof (pkey)); 430 memcpy (*data, &pkey, sizeof (pkey));
431 *data_size = sizeof (GNUNET_HashCode); 431 *data_size = sizeof (struct GNUNET_CRYPTO_ShortHashCode);
432 return GNUNET_OK; 432 return GNUNET_OK;
433 case GNUNET_NAMESTORE_TYPE_PSEU: 433 case GNUNET_NAMESTORE_TYPE_PSEU:
434 *data = GNUNET_strdup (s); 434 *data = GNUNET_strdup (s);