diff options
Diffstat (limited to 'src/fs/fs_namespace.c')
-rw-r--r-- | src/fs/fs_namespace.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c index bfd7594ef..4f58b7d5b 100644 --- a/src/fs/fs_namespace.c +++ b/src/fs/fs_namespace.c | |||
@@ -359,7 +359,7 @@ process_namespace (void *cls, const char *filename) | |||
359 | struct ProcessNamespaceContext *pnc = cls; | 359 | struct ProcessNamespaceContext *pnc = cls; |
360 | struct GNUNET_CRYPTO_RsaPrivateKey *key; | 360 | struct GNUNET_CRYPTO_RsaPrivateKey *key; |
361 | struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pk; | 361 | struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pk; |
362 | GNUNET_HashCode id; | 362 | struct GNUNET_HashCode id; |
363 | const char *name; | 363 | const char *name; |
364 | const char *t; | 364 | const char *t; |
365 | 365 | ||
@@ -470,7 +470,7 @@ sb_put_cont (void *cls, int success, | |||
470 | const char *msg) | 470 | const char *msg) |
471 | { | 471 | { |
472 | struct GNUNET_FS_PublishSksContext *psc = cls; | 472 | struct GNUNET_FS_PublishSksContext *psc = cls; |
473 | GNUNET_HashCode hc; | 473 | struct GNUNET_HashCode hc; |
474 | 474 | ||
475 | psc->dqe = NULL; | 475 | psc->dqe = NULL; |
476 | if (GNUNET_OK != success) | 476 | if (GNUNET_OK != success) |
@@ -544,9 +544,9 @@ GNUNET_FS_publish_sks (struct GNUNET_FS_Handle *h, | |||
544 | struct SBlock *sb_enc; | 544 | struct SBlock *sb_enc; |
545 | char *dest; | 545 | char *dest; |
546 | struct GNUNET_CONTAINER_MetaData *mmeta; | 546 | struct GNUNET_CONTAINER_MetaData *mmeta; |
547 | GNUNET_HashCode key; /* hash of thisId = key */ | 547 | struct GNUNET_HashCode key; /* hash of thisId = key */ |
548 | GNUNET_HashCode id; /* hash of hc = identifier */ | 548 | struct GNUNET_HashCode id; /* hash of hc = identifier */ |
549 | GNUNET_HashCode query; /* id ^ nsid = DB query */ | 549 | struct GNUNET_HashCode query; /* id ^ nsid = DB query */ |
550 | 550 | ||
551 | if (NULL == meta) | 551 | if (NULL == meta) |
552 | mmeta = GNUNET_CONTAINER_meta_data_create (); | 552 | mmeta = GNUNET_CONTAINER_meta_data_create (); |
@@ -591,7 +591,7 @@ GNUNET_FS_publish_sks (struct GNUNET_FS_Handle *h, | |||
591 | size = sizeof (struct SBlock) + mdsize + slen + nidlen; | 591 | size = sizeof (struct SBlock) + mdsize + slen + nidlen; |
592 | sb_enc = GNUNET_malloc (size); | 592 | sb_enc = GNUNET_malloc (size); |
593 | GNUNET_CRYPTO_hash (identifier, idlen, &key); | 593 | GNUNET_CRYPTO_hash (identifier, idlen, &key); |
594 | GNUNET_CRYPTO_hash (&key, sizeof (GNUNET_HashCode), &id); | 594 | GNUNET_CRYPTO_hash (&key, sizeof (struct GNUNET_HashCode), &id); |
595 | sks_uri = GNUNET_malloc (sizeof (struct GNUNET_FS_Uri)); | 595 | sks_uri = GNUNET_malloc (sizeof (struct GNUNET_FS_Uri)); |
596 | sks_uri->type = sks; | 596 | sks_uri->type = sks; |
597 | GNUNET_CRYPTO_rsa_key_get_public (namespace->key, &sb_enc->subspace); | 597 | GNUNET_CRYPTO_rsa_key_get_public (namespace->key, &sb_enc->subspace); |
@@ -711,7 +711,7 @@ struct ProcessUpdateClosure | |||
711 | * GNUNET_NO if not. | 711 | * GNUNET_NO if not. |
712 | */ | 712 | */ |
713 | static int | 713 | static int |
714 | process_update_node (void *cls, const GNUNET_HashCode * key, void *value) | 714 | process_update_node (void *cls, const struct GNUNET_HashCode * key, void *value) |
715 | { | 715 | { |
716 | struct ProcessUpdateClosure *pc = cls; | 716 | struct ProcessUpdateClosure *pc = cls; |
717 | struct NamespaceUpdateNode *nsn = value; | 717 | struct NamespaceUpdateNode *nsn = value; |
@@ -774,11 +774,11 @@ struct FindTreeClosure | |||
774 | * GNUNET_NO if not. | 774 | * GNUNET_NO if not. |
775 | */ | 775 | */ |
776 | static int | 776 | static int |
777 | find_trees (void *cls, const GNUNET_HashCode * key, void *value) | 777 | find_trees (void *cls, const struct GNUNET_HashCode * key, void *value) |
778 | { | 778 | { |
779 | struct FindTreeClosure *fc = cls; | 779 | struct FindTreeClosure *fc = cls; |
780 | struct NamespaceUpdateNode *nsn = value; | 780 | struct NamespaceUpdateNode *nsn = value; |
781 | GNUNET_HashCode hc; | 781 | struct GNUNET_HashCode hc; |
782 | 782 | ||
783 | if (nsn->nug == fc->nug) | 783 | if (nsn->nug == fc->nug) |
784 | { | 784 | { |
@@ -838,7 +838,7 @@ GNUNET_FS_namespace_list_updateable (struct GNUNET_FS_Namespace *namespace, | |||
838 | { | 838 | { |
839 | unsigned int i; | 839 | unsigned int i; |
840 | unsigned int nug; | 840 | unsigned int nug; |
841 | GNUNET_HashCode hc; | 841 | struct GNUNET_HashCode hc; |
842 | struct NamespaceUpdateNode *nsn; | 842 | struct NamespaceUpdateNode *nsn; |
843 | struct ProcessUpdateClosure pc; | 843 | struct ProcessUpdateClosure pc; |
844 | struct FindTreeClosure fc; | 844 | struct FindTreeClosure fc; |