-fix ftbfs
[oweals/gnunet.git] / src / namestore / plugin_rest_namestore.c
index 365e10046bf3df7ed48380246f960a9265c1beb1..7f5372a330496e079308c4a731c325e6c2393b2b 100644 (file)
@@ -220,7 +220,7 @@ struct RequestHandle
  * Cleanup lookup handle
  * @param handle Handle to clean up
  */
-void
+static void
 cleanup_handle (struct RequestHandle *handle)
 {
   struct RecordEntry *record_entry;
@@ -274,7 +274,7 @@ cleanup_handle (struct RequestHandle *handle)
  *
  * @param rd the GNSRECORD_Data
  */
-json_t *
+static json_t *
 gnsrecord_to_json (const struct GNUNET_GNSRECORD_Data *rd)
 {
   const char *typename;
@@ -351,7 +351,7 @@ cleanup_handle_delayed (void *cls,
  *
  * @param handle the RequestHandle
  */
-void
+static void
 namestore_list_response (void *cls,
                          const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key,
                          const char *rname,
@@ -751,7 +751,6 @@ namestore_create_cont (struct RestConnectionDataHandle *con,
   if (GNUNET_SYSERR == json_to_gnsrecord (records_json, &handle->rd, &handle->rd_count))
   {
     GNUNET_REST_jsonapi_object_delete (json_obj);
-    json_decref (records_json);
     GNUNET_SCHEDULER_add_now (&do_error, handle);
     return;
   }
@@ -968,7 +967,7 @@ testservice_id_task (void *cls, int result)
  * @param proc_cls closure for callback function
  * @return GNUNET_OK if request accepted
  */
-void
+static void
 rest_identity_process_request(struct RestConnectionDataHandle *conndata_handle,
                               GNUNET_REST_ResultProcessor proc,
                               void *proc_cls)