-fix #2598
[oweals/gnunet.git] / src / fs / fs_namespace_advertise.c
index 60b4de095803ea00f140f17b1e8093e410c5348a..3b64e619cb0ef9067dda6371c445d92b1e3c7c93 100644 (file)
@@ -132,8 +132,8 @@ advertisement_cont (void *cls, int success,
 {
   struct GNUNET_FS_AdvertisementContext *ac = cls;
   const char *keyword;
-  GNUNET_HashCode key;
-  GNUNET_HashCode query;
+  struct GNUNET_HashCode key;
+  struct GNUNET_HashCode query;
   struct GNUNET_CRYPTO_AesSessionKey skey;
   struct GNUNET_CRYPTO_AesInitializationVector iv;
   struct GNUNET_CRYPTO_RsaPrivateKey *pk;
@@ -204,7 +204,7 @@ advertisement_cont (void *cls, int success,
  *
  * @param h handle to the file sharing subsystem
  * @param ksk_uri keywords to use for advertisment
- * @param namespace handle for the namespace that should be advertised
+ * @param ns handle for the namespace that should be advertised
  * @param meta meta-data for the namespace advertisement
  * @param bo block options
  * @param rootEntry name of the root of the namespace
@@ -215,7 +215,7 @@ advertisement_cont (void *cls, int success,
 struct GNUNET_FS_AdvertisementContext *
 GNUNET_FS_namespace_advertise (struct GNUNET_FS_Handle *h,
                                struct GNUNET_FS_Uri *ksk_uri,
-                               struct GNUNET_FS_Namespace *namespace,
+                               struct GNUNET_FS_Namespace *ns,
                                const struct GNUNET_CONTAINER_MetaData *meta,
                                const struct GNUNET_FS_BlockOptions *bo,
                                const char *rootEntry,
@@ -261,7 +261,7 @@ GNUNET_FS_namespace_advertise (struct GNUNET_FS_Handle *h,
   }
   size = mdsize + sizeof (struct NBlock) + reslen;
   nb = GNUNET_malloc (size);
-  GNUNET_CRYPTO_rsa_key_get_public (namespace->key, &nb->subspace);
+  GNUNET_CRYPTO_rsa_key_get_public (ns->key, &nb->subspace);
   nb->ns_purpose.size =
       htonl (mdsize + reslen +
              sizeof (struct GNUNET_CRYPTO_RsaSignaturePurpose) +
@@ -286,7 +286,7 @@ GNUNET_FS_namespace_advertise (struct GNUNET_FS_Handle *h,
   ctx->nb = nb;
   ctx->pt = pt;
   ctx->pt_size = mdsize + reslen;
-  ctx->ns = namespace;
+  ctx->ns = ns;
   ctx->ns->rc++;
   ctx->bo = *bo;
   advertisement_cont (ctx, GNUNET_OK, GNUNET_TIME_UNIT_ZERO_ABS, NULL);
@@ -297,7 +297,7 @@ GNUNET_FS_namespace_advertise (struct GNUNET_FS_Handle *h,
 /**
  * Abort the namespace advertisement operation.
  *
- * @param pkc context of the operation to abort.
+ * @param ac context of the operation to abort.
  */
 void
 GNUNET_FS_namespace_advertise_cancel (struct GNUNET_FS_AdvertisementContext *ac)