From: Christian Grothoff Date: Wed, 20 Feb 2019 12:22:28 +0000 (+0100) Subject: disable TO_FILE logic, causes assertion failures all the time (NULL filename) X-Git-Tag: v0.11.0~63^2~32^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1173f89823cd4cb1ff6c8afdbc33ea9397bbeee2;p=oweals%2Fgnunet.git disable TO_FILE logic, causes assertion failures all the time (NULL filename) --- diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 08f2450f5..9dba04316 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c @@ -11,7 +11,7 @@ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . @@ -2576,7 +2576,7 @@ insert_in_sampler (void *cls, * messages to it */ //indicate_sending_intention (peer); } - #ifdef TO_FILE +#ifdef TO_FILE sub->num_observed_peers++; GNUNET_CONTAINER_multipeermap_put (sub->observed_unique_peers, @@ -2590,7 +2590,7 @@ insert_in_sampler (void *cls, sub->num_observed_peers, num_observed_unique_peers, 1.0*num_observed_unique_peers/sub->num_observed_peers) - #endif /* TO_FILE */ +#endif /* TO_FILE */ } @@ -2874,7 +2874,7 @@ new_sub (const struct GNUNET_HashCode *hash, /* Logging of internals */ sub->file_name_view_log = store_prefix_file_name (&own_identity, "view"); - #ifdef TO_FILE +#ifdef TO_FILE sub->file_name_observed_log = store_prefix_file_name (&own_identity, "observed"); sub->file_name_push_recv = store_prefix_file_name (&own_identity, @@ -2884,7 +2884,7 @@ new_sub (const struct GNUNET_HashCode *hash, sub->num_observed_peers = 0; sub->observed_unique_peers = GNUNET_CONTAINER_multipeermap_create (1, GNUNET_NO); - #endif /* TO_FILE */ +#endif /* TO_FILE */ /* Set up data structures for gossip */ sub->push_map = CustomPeerMap_create (4); diff --git a/src/rps/rps-test_util.h b/src/rps/rps-test_util.h index cf15a9909..484d0f7da 100644 --- a/src/rps/rps-test_util.h +++ b/src/rps/rps-test_util.h @@ -11,7 +11,7 @@ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . @@ -28,7 +28,7 @@ #ifndef RPS_TEST_UTIL_H #define RPS_TEST_UTIL_H -#define TO_FILE 1 +#define TO_FILE 0 char *