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/peerstore | |
parent | 01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff) | |
download | gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.tar.gz gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.zip |
tighten formatting rules
Diffstat (limited to 'src/peerstore')
-rw-r--r-- | src/peerstore/gnunet-peerstore.c | 1 | ||||
-rw-r--r-- | src/peerstore/peerstore_api.c | 1 | ||||
-rw-r--r-- | src/peerstore/perf_peerstore_store.c | 1 | ||||
-rw-r--r-- | src/peerstore/plugin_peerstore_flat.c | 6 | ||||
-rw-r--r-- | src/peerstore/plugin_peerstore_sqlite.c | 1 | ||||
-rw-r--r-- | src/peerstore/test_peerstore_api_iterate.c | 1 | ||||
-rw-r--r-- | src/peerstore/test_peerstore_api_store.c | 1 | ||||
-rw-r--r-- | src/peerstore/test_peerstore_api_sync.c | 7 | ||||
-rw-r--r-- | src/peerstore/test_peerstore_api_watch.c | 1 | ||||
-rw-r--r-- | src/peerstore/test_plugin_peerstore.c | 1 |
10 files changed, 18 insertions, 3 deletions
diff --git a/src/peerstore/gnunet-peerstore.c b/src/peerstore/gnunet-peerstore.c index 392318f84..11313b5d3 100644 --- a/src/peerstore/gnunet-peerstore.c +++ b/src/peerstore/gnunet-peerstore.c | |||
@@ -93,4 +93,5 @@ main (int argc, char *const *argv) | |||
93 | NULL)) ? ret : 1; | 93 | NULL)) ? ret : 1; |
94 | } | 94 | } |
95 | 95 | ||
96 | |||
96 | /* end of gnunet-peerstore.c */ | 97 | /* end of gnunet-peerstore.c */ |
diff --git a/src/peerstore/peerstore_api.c b/src/peerstore/peerstore_api.c index e5881a6b4..17f73d70a 100644 --- a/src/peerstore/peerstore_api.c +++ b/src/peerstore/peerstore_api.c | |||
@@ -930,4 +930,5 @@ GNUNET_PEERSTORE_watch (struct GNUNET_PEERSTORE_Handle *h, | |||
930 | return wc; | 930 | return wc; |
931 | } | 931 | } |
932 | 932 | ||
933 | |||
933 | /* end of peerstore_api.c */ | 934 | /* end of peerstore_api.c */ |
diff --git a/src/peerstore/perf_peerstore_store.c b/src/peerstore/perf_peerstore_store.c index bdff19cb5..24c7e4f01 100644 --- a/src/peerstore/perf_peerstore_store.c +++ b/src/peerstore/perf_peerstore_store.c | |||
@@ -105,4 +105,5 @@ main (int argc, char *argv[]) | |||
105 | return ok; | 105 | return ok; |
106 | } | 106 | } |
107 | 107 | ||
108 | |||
108 | /* end of perf_peerstore_store.c */ | 109 | /* end of perf_peerstore_store.c */ |
diff --git a/src/peerstore/plugin_peerstore_flat.c b/src/peerstore/plugin_peerstore_flat.c index 224664685..6983ff2d8 100644 --- a/src/peerstore/plugin_peerstore_flat.c +++ b/src/peerstore/plugin_peerstore_flat.c | |||
@@ -146,6 +146,7 @@ peerstore_flat_delete_records (void *cls, const char *sub_system, | |||
146 | return plugin->deleted_entries; | 146 | return plugin->deleted_entries; |
147 | } | 147 | } |
148 | 148 | ||
149 | |||
149 | static int | 150 | static int |
150 | expire_entries (void *cls, | 151 | expire_entries (void *cls, |
151 | const struct GNUNET_HashCode *key, | 152 | const struct GNUNET_HashCode *key, |
@@ -163,7 +164,6 @@ expire_entries (void *cls, | |||
163 | } | 164 | } |
164 | 165 | ||
165 | 166 | ||
166 | |||
167 | /** | 167 | /** |
168 | * Delete expired records (expiry < now) | 168 | * Delete expired records (expiry < now) |
169 | * | 169 | * |
@@ -222,6 +222,7 @@ iterate_entries (void *cls, | |||
222 | return GNUNET_YES; | 222 | return GNUNET_YES; |
223 | } | 223 | } |
224 | 224 | ||
225 | |||
225 | /** | 226 | /** |
226 | * Iterate over the records given an optional peer id | 227 | * Iterate over the records given an optional peer id |
227 | * and/or key. | 228 | * and/or key. |
@@ -478,6 +479,7 @@ database_setup (struct Plugin *plugin) | |||
478 | return GNUNET_OK; | 479 | return GNUNET_OK; |
479 | } | 480 | } |
480 | 481 | ||
482 | |||
481 | static int | 483 | static int |
482 | store_and_free_entries (void *cls, | 484 | store_and_free_entries (void *cls, |
483 | const struct GNUNET_HashCode *key, | 485 | const struct GNUNET_HashCode *key, |
@@ -517,6 +519,7 @@ store_and_free_entries (void *cls, | |||
517 | return GNUNET_YES; | 519 | return GNUNET_YES; |
518 | } | 520 | } |
519 | 521 | ||
522 | |||
520 | /** | 523 | /** |
521 | * Shutdown database connection and associate data | 524 | * Shutdown database connection and associate data |
522 | * structures. | 525 | * structures. |
@@ -599,4 +602,5 @@ libgnunet_plugin_peerstore_flat_done (void *cls) | |||
599 | return NULL; | 602 | return NULL; |
600 | } | 603 | } |
601 | 604 | ||
605 | |||
602 | /* end of plugin_peerstore_sqlite.c */ | 606 | /* end of plugin_peerstore_sqlite.c */ |
diff --git a/src/peerstore/plugin_peerstore_sqlite.c b/src/peerstore/plugin_peerstore_sqlite.c index 51cc651a2..cf499a5df 100644 --- a/src/peerstore/plugin_peerstore_sqlite.c +++ b/src/peerstore/plugin_peerstore_sqlite.c | |||
@@ -698,4 +698,5 @@ libgnunet_plugin_peerstore_sqlite_done (void *cls) | |||
698 | return NULL; | 698 | return NULL; |
699 | } | 699 | } |
700 | 700 | ||
701 | |||
701 | /* end of plugin_peerstore_sqlite.c */ | 702 | /* end of plugin_peerstore_sqlite.c */ |
diff --git a/src/peerstore/test_peerstore_api_iterate.c b/src/peerstore/test_peerstore_api_iterate.c index 79d4a3b3c..b6cd51906 100644 --- a/src/peerstore/test_peerstore_api_iterate.c +++ b/src/peerstore/test_peerstore_api_iterate.c | |||
@@ -172,4 +172,5 @@ main (int argc, char *argv[]) | |||
172 | return ok; | 172 | return ok; |
173 | } | 173 | } |
174 | 174 | ||
175 | |||
175 | /* end of test_peerstore_api_iterate.c */ | 176 | /* end of test_peerstore_api_iterate.c */ |
diff --git a/src/peerstore/test_peerstore_api_store.c b/src/peerstore/test_peerstore_api_store.c index c1ecc16bf..77e8a17c1 100644 --- a/src/peerstore/test_peerstore_api_store.c +++ b/src/peerstore/test_peerstore_api_store.c | |||
@@ -229,4 +229,5 @@ main (int argc, char *argv[]) | |||
229 | return ok; | 229 | return ok; |
230 | } | 230 | } |
231 | 231 | ||
232 | |||
232 | /* end of test_peerstore_api_store.c */ | 233 | /* end of test_peerstore_api_store.c */ |
diff --git a/src/peerstore/test_peerstore_api_sync.c b/src/peerstore/test_peerstore_api_sync.c index bfeae6ed8..4c826c654 100644 --- a/src/peerstore/test_peerstore_api_sync.c +++ b/src/peerstore/test_peerstore_api_sync.c | |||
@@ -117,6 +117,7 @@ test_cont (void *cls) | |||
117 | NULL); | 117 | NULL); |
118 | } | 118 | } |
119 | 119 | ||
120 | |||
120 | static void | 121 | static void |
121 | disc_cont (void *cls) | 122 | disc_cont (void *cls) |
122 | { | 123 | { |
@@ -127,6 +128,7 @@ disc_cont (void *cls) | |||
127 | NULL); | 128 | NULL); |
128 | } | 129 | } |
129 | 130 | ||
131 | |||
130 | static void | 132 | static void |
131 | store_cont (void *cls, int success) | 133 | store_cont (void *cls, int success) |
132 | { | 134 | { |
@@ -135,11 +137,11 @@ store_cont (void *cls, int success) | |||
135 | a chance to actually finish the operation; otherwise, | 137 | a chance to actually finish the operation; otherwise, |
136 | the test may fail non-deterministically if the new | 138 | the test may fail non-deterministically if the new |
137 | connection is faster than the cleanup routine of the | 139 | connection is faster than the cleanup routine of the |
138 | old one. */ | 140 | old one. */GNUNET_SCHEDULER_add_now (&disc_cont, |
139 | GNUNET_SCHEDULER_add_now (&disc_cont, | ||
140 | NULL); | 141 | NULL); |
141 | } | 142 | } |
142 | 143 | ||
144 | |||
143 | /** | 145 | /** |
144 | * Actually run the test. | 146 | * Actually run the test. |
145 | */ | 147 | */ |
@@ -192,4 +194,5 @@ main (int argc, char *argv[]) | |||
192 | return ok; | 194 | return ok; |
193 | } | 195 | } |
194 | 196 | ||
197 | |||
195 | /* end of test_peerstore_api_sync.c */ | 198 | /* end of test_peerstore_api_sync.c */ |
diff --git a/src/peerstore/test_peerstore_api_watch.c b/src/peerstore/test_peerstore_api_watch.c index b833a99a5..126b321df 100644 --- a/src/peerstore/test_peerstore_api_watch.c +++ b/src/peerstore/test_peerstore_api_watch.c | |||
@@ -98,4 +98,5 @@ main (int argc, | |||
98 | return ok; | 98 | return ok; |
99 | } | 99 | } |
100 | 100 | ||
101 | |||
101 | /* end of test_peerstore_api_watch.c */ | 102 | /* end of test_peerstore_api_watch.c */ |
diff --git a/src/peerstore/test_plugin_peerstore.c b/src/peerstore/test_plugin_peerstore.c index 8fce65e23..03e71ed63 100644 --- a/src/peerstore/test_plugin_peerstore.c +++ b/src/peerstore/test_plugin_peerstore.c | |||
@@ -220,4 +220,5 @@ main (int argc, char *argv[]) | |||
220 | return ok; | 220 | return ok; |
221 | } | 221 | } |
222 | 222 | ||
223 | |||
223 | /* end of test_plugin_peerstore.c */ | 224 | /* end of test_plugin_peerstore.c */ |