From 17d34d5e094c2f8a90717b07e3a711d6e2c15903 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 17 Mar 2017 18:13:55 +0100 Subject: more renamings relating to 'new' service now just being the 'normal' service --- src/statistics/gnunet-service-statistics.c | 2 +- src/statistics/statistics_api.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/statistics') diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c index 85c84b89d..0cb136b99 100644 --- a/src/statistics/gnunet-service-statistics.c +++ b/src/statistics/gnunet-service-statistics.c @@ -359,7 +359,7 @@ transmit (struct ClientEntry *ce, size = strlen (e->subsystem->service) + 1 + strlen (e->name) + 1; - GNUNET_assert (size < GNUNET_SERVER_MAX_MESSAGE_SIZE); + GNUNET_assert (size < GNUNET_MAX_MESSAGE_SIZE); env = GNUNET_MQ_msg_extra (m, size, GNUNET_MESSAGE_TYPE_STATISTICS_VALUE); diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index ad4453b2a..9d04e854f 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c @@ -349,7 +349,7 @@ schedule_watch_request (struct GNUNET_STATISTICS_Handle *h, slen = strlen (watch->subsystem) + 1; nlen = strlen (watch->name) + 1; nsize = sizeof (struct GNUNET_MessageHeader) + slen + nlen; - if (nsize >= GNUNET_SERVER_MAX_MESSAGE_SIZE) + if (nsize >= GNUNET_MAX_MESSAGE_SIZE) { GNUNET_break (0); return; @@ -1098,7 +1098,7 @@ GNUNET_STATISTICS_get (struct GNUNET_STATISTICS_Handle *handle, slen1 = strlen (subsystem) + 1; slen2 = strlen (name) + 1; GNUNET_assert (slen1 + slen2 + sizeof (struct GNUNET_MessageHeader) < - GNUNET_SERVER_MAX_MESSAGE_SIZE); + GNUNET_MAX_MESSAGE_SIZE); ai = GNUNET_new (struct GNUNET_STATISTICS_GetHandle); ai->sh = handle; ai->subsystem = GNUNET_strdup (subsystem); @@ -1246,7 +1246,7 @@ add_setter_action (struct GNUNET_STATISTICS_Handle *h, slen = strlen (h->subsystem) + 1; nlen = strlen (name) + 1; nsize = sizeof (struct GNUNET_STATISTICS_SetMessage) + slen + nlen; - if (nsize >= GNUNET_SERVER_MAX_MESSAGE_SIZE) + if (nsize >= GNUNET_MAX_MESSAGE_SIZE) { GNUNET_break (0); return; -- cgit v1.2.3