diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
commit | 7e3cf5f461eb4fbb7581672bf0835da07c378136 (patch) | |
tree | bdc3874b7894242b095b892f1ed3e81a4d4f06c0 /src/nse | |
parent | 01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff) | |
download | gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.tar.gz gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.zip |
tighten formatting rules
Diffstat (limited to 'src/nse')
-rw-r--r-- | src/nse/gnunet-nse-profiler.c | 1 | ||||
-rw-r--r-- | src/nse/gnunet-service-nse.c | 11 | ||||
-rw-r--r-- | src/nse/nse_api.c | 1 | ||||
-rw-r--r-- | src/nse/perf_kdf.c | 2 | ||||
-rw-r--r-- | src/nse/test_nse_api.c | 2 | ||||
-rw-r--r-- | src/nse/test_nse_multipeer.c | 1 |
6 files changed, 15 insertions, 3 deletions
diff --git a/src/nse/gnunet-nse-profiler.c b/src/nse/gnunet-nse-profiler.c index c97798772..81a16b245 100644 --- a/src/nse/gnunet-nse-profiler.c +++ b/src/nse/gnunet-nse-profiler.c | |||
@@ -917,4 +917,5 @@ main (int argc, char *const *argv) | |||
917 | return ok; | 917 | return ok; |
918 | } | 918 | } |
919 | 919 | ||
920 | |||
920 | /* end of nse-profiler.c */ | 921 | /* end of nse-profiler.c */ |
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c index fe32dc30b..e31b07d14 100644 --- a/src/nse/gnunet-service-nse.c +++ b/src/nse/gnunet-service-nse.c | |||
@@ -1046,7 +1046,7 @@ handle_p2p_estimate (void *cls, | |||
1046 | 1046 | ||
1047 | #if ENABLE_NSE_HISTOGRAM | 1047 | #if ENABLE_NSE_HISTOGRAM |
1048 | peer_entry->received_messages++; | 1048 | peer_entry->received_messages++; |
1049 | if ((peer_entry->transmitted_messages > 0)&& | 1049 | if ((peer_entry->transmitted_messages > 0) && |
1050 | (peer_entry->last_transmitted_size >= matching_bits) ) | 1050 | (peer_entry->last_transmitted_size >= matching_bits) ) |
1051 | GNUNET_STATISTICS_update (stats, "# cross messages", 1, GNUNET_NO); | 1051 | GNUNET_STATISTICS_update (stats, "# cross messages", 1, GNUNET_NO); |
1052 | #endif | 1052 | #endif |
@@ -1253,6 +1253,8 @@ flush_comp_cb (void *cls, size_t size) | |||
1253 | GNUNET_TESTBED_LOGGER_disconnect (lh); | 1253 | GNUNET_TESTBED_LOGGER_disconnect (lh); |
1254 | lh = NULL; | 1254 | lh = NULL; |
1255 | } | 1255 | } |
1256 | |||
1257 | |||
1256 | #endif | 1258 | #endif |
1257 | 1259 | ||
1258 | 1260 | ||
@@ -1388,6 +1390,8 @@ status_cb (void *cls, int status) | |||
1388 | GNUNET_SCHEDULER_shutdown (); | 1390 | GNUNET_SCHEDULER_shutdown (); |
1389 | } | 1391 | } |
1390 | } | 1392 | } |
1393 | |||
1394 | |||
1391 | #endif | 1395 | #endif |
1392 | 1396 | ||
1393 | 1397 | ||
@@ -1581,12 +1585,15 @@ GNUNET_SERVICE_MAIN ("nse", | |||
1581 | /** | 1585 | /** |
1582 | * MINIMIZE heap size (way below 128k) since this process doesn't need much. | 1586 | * MINIMIZE heap size (way below 128k) since this process doesn't need much. |
1583 | */ | 1587 | */ |
1584 | void __attribute__ ((constructor)) GNUNET_ARM_memory_init () | 1588 | void __attribute__ ((constructor)) |
1589 | GNUNET_ARM_memory_init () | ||
1585 | { | 1590 | { |
1586 | mallopt (M_TRIM_THRESHOLD, 4 * 1024); | 1591 | mallopt (M_TRIM_THRESHOLD, 4 * 1024); |
1587 | mallopt (M_TOP_PAD, 1 * 1024); | 1592 | mallopt (M_TOP_PAD, 1 * 1024); |
1588 | malloc_trim (0); | 1593 | malloc_trim (0); |
1589 | } | 1594 | } |
1595 | |||
1596 | |||
1590 | #endif | 1597 | #endif |
1591 | 1598 | ||
1592 | 1599 | ||
diff --git a/src/nse/nse_api.c b/src/nse/nse_api.c index af6a2065b..5ed596bf2 100644 --- a/src/nse/nse_api.c +++ b/src/nse/nse_api.c | |||
@@ -205,4 +205,5 @@ GNUNET_NSE_disconnect (struct GNUNET_NSE_Handle *h) | |||
205 | GNUNET_free (h); | 205 | GNUNET_free (h); |
206 | } | 206 | } |
207 | 207 | ||
208 | |||
208 | /* end of nse_api.c */ | 209 | /* end of nse_api.c */ |
diff --git a/src/nse/perf_kdf.c b/src/nse/perf_kdf.c index a6c1432c8..ec6dc7ff3 100644 --- a/src/nse/perf_kdf.c +++ b/src/nse/perf_kdf.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <gauger.h> | 29 | #include <gauger.h> |
30 | 30 | ||
31 | 31 | ||
32 | |||
33 | /** | 32 | /** |
34 | * Calculate the 'proof-of-work' hash (an expensive hash). | 33 | * Calculate the 'proof-of-work' hash (an expensive hash). |
35 | * | 34 | * |
@@ -84,4 +83,5 @@ main (int argc, char *argv[]) | |||
84 | return 0; | 83 | return 0; |
85 | } | 84 | } |
86 | 85 | ||
86 | |||
87 | /* end of perf_kdf.c */ | 87 | /* end of perf_kdf.c */ |
diff --git a/src/nse/test_nse_api.c b/src/nse/test_nse_api.c index 3b9682696..f1b7c652b 100644 --- a/src/nse/test_nse_api.c +++ b/src/nse/test_nse_api.c | |||
@@ -47,6 +47,7 @@ end_test (void *cls) | |||
47 | } | 47 | } |
48 | } | 48 | } |
49 | 49 | ||
50 | |||
50 | /** | 51 | /** |
51 | * Callback to call when network size estimate is updated. | 52 | * Callback to call when network size estimate is updated. |
52 | * | 53 | * |
@@ -102,4 +103,5 @@ main (int argc, char *argv[]) | |||
102 | return ok; | 103 | return ok; |
103 | } | 104 | } |
104 | 105 | ||
106 | |||
105 | /* end of test_nse_api.c */ | 107 | /* end of test_nse_api.c */ |
diff --git a/src/nse/test_nse_multipeer.c b/src/nse/test_nse_multipeer.c index 4c998373e..6ee03b3fa 100644 --- a/src/nse/test_nse_multipeer.c +++ b/src/nse/test_nse_multipeer.c | |||
@@ -231,4 +231,5 @@ main (int argc, char *argv[]) | |||
231 | return ok; | 231 | return ok; |
232 | } | 232 | } |
233 | 233 | ||
234 | |||
234 | /* end of test_nse_multipeer.c */ | 235 | /* end of test_nse_multipeer.c */ |