diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-21 16:00:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-21 16:00:28 +0000 |
commit | 2a690a3fc6c88aa0988d4cef645f7b9acf72adbc (patch) | |
tree | 524a8bd7d01a0a44e5fc1a7a03063e55e02bf0d9 /src | |
parent | be1cb5dac2503d0ca293a2737551d1cdc3002ea3 (diff) | |
download | gnunet-2a690a3fc6c88aa0988d4cef645f7b9acf72adbc.tar.gz gnunet-2a690a3fc6c88aa0988d4cef645f7b9acf72adbc.zip |
-fix
Diffstat (limited to 'src')
-rw-r--r-- | src/namestore/namestore_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/namestore_common.c b/src/namestore/namestore_common.c index 498d38027..831f52f83 100644 --- a/src/namestore/namestore_common.c +++ b/src/namestore/namestore_common.c | |||
@@ -329,11 +329,11 @@ GNUNET_NAMESTORE_value_to_string (uint32_t type, | |||
329 | return NULL; | 329 | return NULL; |
330 | return GNUNET_strdup (tmp); | 330 | return GNUNET_strdup (tmp); |
331 | case GNUNET_NAMESTORE_TYPE_PKEY: | 331 | case GNUNET_NAMESTORE_TYPE_PKEY: |
332 | if (data_size != sizeof (struct GNUNET_ShortHashCode)) | 332 | if (data_size != sizeof (struct GNUNET_CRYPTO_ShortHashCode)) |
333 | return NULL; | 333 | return NULL; |
334 | GNUNET_CRYPTO_short_hash_to_enc (data, | 334 | GNUNET_CRYPTO_short_hash_to_enc (data, |
335 | &enc); | 335 | &enc); |
336 | return GNUNET_strdup (enc.short_encoding); | 336 | return GNUNET_strdup ((const char*) enc.short_encoding); |
337 | case GNUNET_NAMESTORE_TYPE_PSEU: | 337 | case GNUNET_NAMESTORE_TYPE_PSEU: |
338 | return GNUNET_strndup (data, data_size); | 338 | return GNUNET_strndup (data, data_size); |
339 | default: | 339 | default: |