From: Christian Grothoff Date: Sun, 30 Nov 2014 00:46:58 +0000 (+0000) Subject: -fix ftbfs X-Git-Tag: initial-import-from-subversion-38251~3041 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ff74fa1dac7f7b839930959962f4f1c843708bd;p=oweals%2Fgnunet.git -fix ftbfs --- diff --git a/src/revocation/gnunet-service-revocation.c b/src/revocation/gnunet-service-revocation.c index 7ef5cbc81..8e5f554ed 100644 --- a/src/revocation/gnunet-service-revocation.c +++ b/src/revocation/gnunet-service-revocation.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - (C) 2013 Christian Grothoff (and other contributing authors) + (C) 2013, 2014 Christian Grothoff (and other contributing authors) GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Licerevocation as published @@ -428,20 +428,21 @@ add_revocation (void *cls, "# revocation messages received via set union", 1, GNUNET_NO); break; - case GNUNET_SET_STATUS_TIMEOUT: case GNUNET_SET_STATUS_FAILURE: GNUNET_log (GNUNET_ERROR_TYPE_WARNING, _("Error computing revocation set union with %s\n"), GNUNET_i2s (&peer_entry->id)); peer_entry->so = NULL; - GNUNET_STATISTICS_update (stats, "# revocation set unions failed", + GNUNET_STATISTICS_update (stats, + "# revocation set unions failed", 1, GNUNET_NO); break; case GNUNET_SET_STATUS_HALF_DONE: break; case GNUNET_SET_STATUS_DONE: peer_entry->so = NULL; - GNUNET_STATISTICS_update (stats, "# revocation set unions completed", + GNUNET_STATISTICS_update (stats, + "# revocation set unions completed", 1, GNUNET_NO); break; default: @@ -801,11 +802,12 @@ run (void *cls, } revocation_set = GNUNET_SET_create (cfg, GNUNET_SET_OPERATION_UNION); - revocation_union_listen_handle = GNUNET_SET_listen (cfg, - GNUNET_SET_OPERATION_UNION, - &revocation_set_union_app_id, - &handle_revocation_union_request, - NULL); + revocation_union_listen_handle + = GNUNET_SET_listen (cfg, + GNUNET_SET_OPERATION_UNION, + &revocation_set_union_app_id, + &handle_revocation_union_request, + NULL); revocation_db = GNUNET_DISK_file_open (fn, GNUNET_DISK_OPEN_READWRITE | GNUNET_DISK_OPEN_CREATE, @@ -892,7 +894,10 @@ main (int argc, strlen ("revocation-set-union-application-id"), &revocation_set_union_app_id); return (GNUNET_OK == - GNUNET_SERVICE_run (argc, argv, "revocation", GNUNET_SERVICE_OPTION_NONE, + GNUNET_SERVICE_run (argc, + argv, + "revocation", + GNUNET_SERVICE_OPTION_NONE, &run, NULL)) ? 0 : 1; } @@ -900,6 +905,7 @@ main (int argc, #ifdef LINUX #include + /** * MINIMIZE heap size (way below 128k) since this process doesn't need much. */ @@ -913,5 +919,4 @@ GNUNET_ARM_memory_init () #endif - /* end of gnunet-service-revocation.c */