From 1173f89823cd4cb1ff6c8afdbc33ea9397bbeee2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 20 Feb 2019 13:22:28 +0100 Subject: disable TO_FILE logic, causes assertion failures all the time (NULL filename) --- src/rps/gnunet-service-rps.c | 10 +++++----- src/rps/rps-test_util.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') 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 * -- cgit v1.2.3