diff options
Diffstat (limited to 'src/peerinfo/gnunet-service-peerinfo.c')
-rw-r--r-- | src/peerinfo/gnunet-service-peerinfo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c index bc4a2a10d..731c24bf1 100644 --- a/src/peerinfo/gnunet-service-peerinfo.c +++ b/src/peerinfo/gnunet-service-peerinfo.c | |||
@@ -283,7 +283,7 @@ read_host_file (const char *fn, | |||
283 | int unlink_garbage, | 283 | int unlink_garbage, |
284 | struct ReadHostFileContext *r) | 284 | struct ReadHostFileContext *r) |
285 | { | 285 | { |
286 | char buffer[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1] GNUNET_ALIGN; | 286 | char buffer[GNUNET_MAX_MESSAGE_SIZE - 1] GNUNET_ALIGN; |
287 | ssize_t size_total; | 287 | ssize_t size_total; |
288 | struct GNUNET_TIME_Absolute now; | 288 | struct GNUNET_TIME_Absolute now; |
289 | unsigned int left; | 289 | unsigned int left; |
@@ -919,7 +919,7 @@ add_to_tc (void *cls, | |||
919 | { | 919 | { |
920 | /* Copy public HELLO */ | 920 | /* Copy public HELLO */ |
921 | hs = GNUNET_HELLO_size (pos->hello); | 921 | hs = GNUNET_HELLO_size (pos->hello); |
922 | GNUNET_assert (hs < GNUNET_SERVER_MAX_MESSAGE_SIZE - | 922 | GNUNET_assert (hs < GNUNET_MAX_MESSAGE_SIZE - |
923 | sizeof (struct InfoMessage)); | 923 | sizeof (struct InfoMessage)); |
924 | env = GNUNET_MQ_msg_extra (im, | 924 | env = GNUNET_MQ_msg_extra (im, |
925 | hs, | 925 | hs, |
@@ -937,7 +937,7 @@ add_to_tc (void *cls, | |||
937 | { | 937 | { |
938 | /* Copy friend only HELLO */ | 938 | /* Copy friend only HELLO */ |
939 | hs = GNUNET_HELLO_size (pos->friend_only_hello); | 939 | hs = GNUNET_HELLO_size (pos->friend_only_hello); |
940 | GNUNET_assert (hs < GNUNET_SERVER_MAX_MESSAGE_SIZE - | 940 | GNUNET_assert (hs < GNUNET_MAX_MESSAGE_SIZE - |
941 | sizeof (struct InfoMessage)); | 941 | sizeof (struct InfoMessage)); |
942 | env = GNUNET_MQ_msg_extra (im, | 942 | env = GNUNET_MQ_msg_extra (im, |
943 | hs, | 943 | hs, |
@@ -977,7 +977,7 @@ discard_hosts_helper (void *cls, | |||
977 | const char *fn) | 977 | const char *fn) |
978 | { | 978 | { |
979 | struct GNUNET_TIME_Absolute *now = cls; | 979 | struct GNUNET_TIME_Absolute *now = cls; |
980 | char buffer[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1] GNUNET_ALIGN; | 980 | char buffer[GNUNET_MAX_MESSAGE_SIZE - 1] GNUNET_ALIGN; |
981 | const struct GNUNET_HELLO_Message *hello; | 981 | const struct GNUNET_HELLO_Message *hello; |
982 | struct GNUNET_HELLO_Message *new_hello; | 982 | struct GNUNET_HELLO_Message *new_hello; |
983 | int read_size; | 983 | int read_size; |