Initial Fixes of plugin
authorMarkus Voggenreiter <Markus.Voggenreiter@tum.de>
Wed, 9 Oct 2019 19:39:35 +0000 (21:39 +0200)
committerMarkus Voggenreiter <Markus.Voggenreiter@tum.de>
Wed, 9 Oct 2019 19:39:35 +0000 (21:39 +0200)
src/reclaim-attribute/plugin_reclaim_attribute_gnuid.c
src/reclaim/plugin_rest_reclaim.c

index e2386a04526bdded92682d7dfb62fad8ec27cf0b..b06f98f66dfb17d88f0a88a07ea05629ee649b2a 100644 (file)
@@ -236,7 +236,7 @@ gnuid_typename_to_number_attest (void *cls, const char *gnuid_typename)
  * @return corresponding typestring, NULL on error
  */
 static const char *
-gnuid_number_to_typename (void *cls, uint32_t type)
+gnuid_number_to_typename_attest (void *cls, uint32_t type)
 {
   unsigned int i;
 
index 913a413af8194b0be0820b3ac2bdf9e2e02720e7..d7cfd393a7049072fff6f4e8bd4940ce9771e4a2 100644 (file)
@@ -440,7 +440,7 @@ add_attestation_cont (struct GNUNET_REST_RequestHandle *con_handle,
                       void *cls)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Adding Attestations not supported\n");
-  GNUNET_SCHEDULER_add_now (&do_error, handle);
+  GNUNET_SCHEDULER_add_now (&do_error, cls);
   return;
 }
 /*Placeholder*/
@@ -450,7 +450,7 @@ list_attestation_cont (struct GNUNET_REST_RequestHandle *con_handle,
                        void *cls)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Listing Attestations not supported\n");
-  GNUNET_SCHEDULER_add_now (&do_error, handle);
+  GNUNET_SCHEDULER_add_now (&do_error, cls);
   return;
 }
 
@@ -461,7 +461,7 @@ delete_attestation_cont (struct GNUNET_REST_RequestHandle *con_handle,
                          void *cls)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Deleting Attestations not supported\n");
-  GNUNET_SCHEDULER_add_now (&do_error, handle);
+  GNUNET_SCHEDULER_add_now (&do_error, cls);
   return;
 }