aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-31 13:03:48 +0100
committerChristian Grothoff <christian@grothoff.org>2019-10-31 13:03:48 +0100
commit7e3cf5f461eb4fbb7581672bf0835da07c378136 (patch)
treebdc3874b7894242b095b892f1ed3e81a4d4f06c0 /src/core
parent01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff)
downloadgnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.tar.gz
gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.zip
tighten formatting rules
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gnunet-core.c1
-rw-r--r--src/core/gnunet-service-core.c6
-rw-r--r--src/core/gnunet-service-core_sessions.c1
-rw-r--r--src/core/gnunet-service-core_typemap.c1
-rw-r--r--src/core/test_core_api.c1
-rw-r--r--src/core/test_core_api_reliability.c1
-rw-r--r--src/core/test_core_api_send_to_self.c1
-rw-r--r--src/core/test_core_api_start_only.c1
-rw-r--r--src/core/test_core_quota_compliance.c1
9 files changed, 9 insertions, 5 deletions
diff --git a/src/core/gnunet-core.c b/src/core/gnunet-core.c
index 0d991f194..90777a7a8 100644
--- a/src/core/gnunet-core.c
+++ b/src/core/gnunet-core.c
@@ -204,4 +204,5 @@ main (int argc, char *const *argv)
204 return 1; 204 return 1;
205} 205}
206 206
207
207/* end of gnunet-core.c */ 208/* end of gnunet-core.c */
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index 3828460dc..04e6d0141 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -501,8 +501,7 @@ handle_client_send (void *cls, const struct SendMessage *sm)
501 * (which triggered removal of the 'car') and now the client gives us a message 501 * (which triggered removal of the 'car') and now the client gives us a message
502 * just *before* the client learns about the disconnect. Theoretically, we 502 * just *before* the client learns about the disconnect. Theoretically, we
503 * might also now be *again* connected. So this can happen (but should be 503 * might also now be *again* connected. So this can happen (but should be
504 * rare). If it does happen, the message is discarded. */ 504 * rare). If it does happen, the message is discarded. */GNUNET_STATISTICS_update (GSC_stats,
505 GNUNET_STATISTICS_update (GSC_stats,
506 gettext_noop ( 505 gettext_noop (
507 "# messages discarded (session disconnected)"), 506 "# messages discarded (session disconnected)"),
508 1, 507 1,
@@ -806,8 +805,7 @@ GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender,
806 and a 99% chance of being kept if we are at the soft max. 805 and a 99% chance of being kept if we are at the soft max.
807 The reason is to make it more likely to drop control traffic 806 The reason is to make it more likely to drop control traffic
808 (ACK, queries) which may be cummulative or highly redundant, 807 (ACK, queries) which may be cummulative or highly redundant,
809 and cheap to drop than data traffic. */ 808 and cheap to drop than data traffic. */qlen = GNUNET_MQ_get_length (c->mq);
810 qlen = GNUNET_MQ_get_length (c->mq);
811 if ((qlen >= HARD_MAX_QUEUE) || 809 if ((qlen >= HARD_MAX_QUEUE) ||
812 ((qlen > SOFT_MAX_QUEUE) && 810 ((qlen > SOFT_MAX_QUEUE) &&
813 ((GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 811 ((GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK,
diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c
index 503d4600f..6c446fc7c 100644
--- a/src/core/gnunet-service-core_sessions.c
+++ b/src/core/gnunet-service-core_sessions.c
@@ -1039,4 +1039,5 @@ GSC_SESSIONS_done ()
1039 } 1039 }
1040} 1040}
1041 1041
1042
1042/* end of gnunet-service-core_sessions.c */ 1043/* end of gnunet-service-core_sessions.c */
diff --git a/src/core/gnunet-service-core_typemap.c b/src/core/gnunet-service-core_typemap.c
index 645127b99..47235501c 100644
--- a/src/core/gnunet-service-core_typemap.c
+++ b/src/core/gnunet-service-core_typemap.c
@@ -373,4 +373,5 @@ GSC_TYPEMAP_done ()
373 /* nothing to do */ 373 /* nothing to do */
374} 374}
375 375
376
376/* end of gnunet-service-core_typemap.c */ 377/* end of gnunet-service-core_typemap.c */
diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c
index feeea7e9f..dda60215d 100644
--- a/src/core/test_core_api.c
+++ b/src/core/test_core_api.c
@@ -340,4 +340,5 @@ main (int argc, char *argv1[])
340 return ok; 340 return ok;
341} 341}
342 342
343
343/* end of test_core_api.c */ 344/* end of test_core_api.c */
diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c
index ca0919294..b510e8993 100644
--- a/src/core/test_core_api_reliability.c
+++ b/src/core/test_core_api_reliability.c
@@ -531,4 +531,5 @@ main (int argc,
531 return ok; 531 return ok;
532} 532}
533 533
534
534/* end of test_core_api_reliability.c */ 535/* end of test_core_api_reliability.c */
diff --git a/src/core/test_core_api_send_to_self.c b/src/core/test_core_api_send_to_self.c
index 77023f573..c2e39cd26 100644
--- a/src/core/test_core_api_send_to_self.c
+++ b/src/core/test_core_api_send_to_self.c
@@ -191,4 +191,5 @@ main (int argc, char *argv[])
191 return ret; 191 return ret;
192} 192}
193 193
194
194/* end of test_core_api_send_to_self.c */ 195/* end of test_core_api_send_to_self.c */
diff --git a/src/core/test_core_api_start_only.c b/src/core/test_core_api_start_only.c
index f2eda4e7a..3cbe50d72 100644
--- a/src/core/test_core_api_start_only.c
+++ b/src/core/test_core_api_start_only.c
@@ -246,4 +246,5 @@ main (int argc,
246 return ret; 246 return ret;
247} 247}
248 248
249
249/* end of test_core_api_start_only.c */ 250/* end of test_core_api_start_only.c */
diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c
index 8d18835ac..67f8bb224 100644
--- a/src/core/test_core_quota_compliance.c
+++ b/src/core/test_core_quota_compliance.c
@@ -434,7 +434,6 @@ disconnect_notify (void *cls,
434} 434}
435 435
436 436
437
438static void 437static void
439handle_test (void *cls, 438handle_test (void *cls,
440 const struct TestMessage *hdr) 439 const struct TestMessage *hdr)