aboutsummaryrefslogtreecommitdiff
path: root/src/gnsrecord
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/gnsrecord
parent01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff)
downloadgnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.tar.gz
gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.zip
tighten formatting rules
Diffstat (limited to 'src/gnsrecord')
-rw-r--r--src/gnsrecord/gnsrecord.c1
-rw-r--r--src/gnsrecord/gnsrecord_crypto.c1
-rw-r--r--src/gnsrecord/gnsrecord_serialization.c3
-rw-r--r--src/gnsrecord/perf_gnsrecord_crypto.c1
-rw-r--r--src/gnsrecord/plugin_gnsrecord_dns.c1
-rw-r--r--src/gnsrecord/test_gnsrecord_block_expiration.c2
-rw-r--r--src/gnsrecord/test_gnsrecord_crypto.c2
-rw-r--r--src/gnsrecord/test_gnsrecord_serialization.c1
8 files changed, 8 insertions, 4 deletions
diff --git a/src/gnsrecord/gnsrecord.c b/src/gnsrecord/gnsrecord.c
index 9d01210be..82fb71c06 100644
--- a/src/gnsrecord/gnsrecord.c
+++ b/src/gnsrecord/gnsrecord.c
@@ -246,4 +246,5 @@ GNUNET_GNSRECORD_number_to_typename (uint32_t type)
246 return NULL; 246 return NULL;
247} 247}
248 248
249
249/* end of gnsrecord.c */ 250/* end of gnsrecord.c */
diff --git a/src/gnsrecord/gnsrecord_crypto.c b/src/gnsrecord/gnsrecord_crypto.c
index b173062ff..2b05dea56 100644
--- a/src/gnsrecord/gnsrecord_crypto.c
+++ b/src/gnsrecord/gnsrecord_crypto.c
@@ -288,7 +288,6 @@ GNUNET_GNSRECORD_block_create2 (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key,
288} 288}
289 289
290 290
291
292/** 291/**
293 * Check if a signature is valid. This API is used by the GNS Block 292 * Check if a signature is valid. This API is used by the GNS Block
294 * to validate signatures received from the network. 293 * to validate signatures received from the network.
diff --git a/src/gnsrecord/gnsrecord_serialization.c b/src/gnsrecord/gnsrecord_serialization.c
index a2711538c..42665e662 100644
--- a/src/gnsrecord/gnsrecord_serialization.c
+++ b/src/gnsrecord/gnsrecord_serialization.c
@@ -130,8 +130,7 @@ GNUNET_GNSRECORD_records_get_size (unsigned int rd_count,
130 * Efficiently round up to the next 130 * Efficiently round up to the next
131 * power of 2 for padding 131 * power of 2 for padding
132 * https://graphics.stanford.edu/~seander/bithacks.html#RoundUpPowerOf2 132 * https://graphics.stanford.edu/~seander/bithacks.html#RoundUpPowerOf2
133 */ 133 */ret--;
134 ret--;
135 ret |= ret >> 1; 134 ret |= ret >> 1;
136 ret |= ret >> 2; 135 ret |= ret >> 2;
137 ret |= ret >> 4; 136 ret |= ret >> 4;
diff --git a/src/gnsrecord/perf_gnsrecord_crypto.c b/src/gnsrecord/perf_gnsrecord_crypto.c
index 4dadbe9b6..3bb4ca4e1 100644
--- a/src/gnsrecord/perf_gnsrecord_crypto.c
+++ b/src/gnsrecord/perf_gnsrecord_crypto.c
@@ -136,4 +136,5 @@ main (int argc, char *argv[])
136 return 0; 136 return 0;
137} 137}
138 138
139
139/* end of test_gnsrecord_crypto.c */ 140/* end of test_gnsrecord_crypto.c */
diff --git a/src/gnsrecord/plugin_gnsrecord_dns.c b/src/gnsrecord/plugin_gnsrecord_dns.c
index 9a45b5b93..5410d9546 100644
--- a/src/gnsrecord/plugin_gnsrecord_dns.c
+++ b/src/gnsrecord/plugin_gnsrecord_dns.c
@@ -808,4 +808,5 @@ libgnunet_plugin_gnsrecord_dns_done (void *cls)
808 return NULL; 808 return NULL;
809} 809}
810 810
811
811/* end of plugin_gnsrecord_dns.c */ 812/* end of plugin_gnsrecord_dns.c */
diff --git a/src/gnsrecord/test_gnsrecord_block_expiration.c b/src/gnsrecord/test_gnsrecord_block_expiration.c
index 9672c2ffb..b53d7d7e8 100644
--- a/src/gnsrecord/test_gnsrecord_block_expiration.c
+++ b/src/gnsrecord/test_gnsrecord_block_expiration.c
@@ -42,7 +42,6 @@
42static int res; 42static int res;
43 43
44 44
45
46static void 45static void
47run (void *cls, char *const *args, const char *cfgfile, 46run (void *cls, char *const *args, const char *cfgfile,
48 const struct GNUNET_CONFIGURATION_Handle *cfg) 47 const struct GNUNET_CONFIGURATION_Handle *cfg)
@@ -105,4 +104,5 @@ main (int argc, char *argv[])
105 return res; 104 return res;
106} 105}
107 106
107
108/* end of test_gnsrecord_crypto.c */ 108/* end of test_gnsrecord_crypto.c */
diff --git a/src/gnsrecord/test_gnsrecord_crypto.c b/src/gnsrecord/test_gnsrecord_crypto.c
index b16828147..0da19fbe9 100644
--- a/src/gnsrecord/test_gnsrecord_crypto.c
+++ b/src/gnsrecord/test_gnsrecord_crypto.c
@@ -94,6 +94,7 @@ rd_decrypt_cb (void *cls,
94 res = 0; 94 res = 0;
95} 95}
96 96
97
97static void 98static void
98run (void *cls, 99run (void *cls,
99 char *const *args, 100 char *const *args,
@@ -166,4 +167,5 @@ main (int argc, char *argv[])
166 return res; 167 return res;
167} 168}
168 169
170
169/* end of test_gnsrecord_crypto.c */ 171/* end of test_gnsrecord_crypto.c */
diff --git a/src/gnsrecord/test_gnsrecord_serialization.c b/src/gnsrecord/test_gnsrecord_serialization.c
index 6905cf515..22d9f8396 100644
--- a/src/gnsrecord/test_gnsrecord_serialization.c
+++ b/src/gnsrecord/test_gnsrecord_serialization.c
@@ -153,4 +153,5 @@ main (int argcx, char *argvx[])
153 return res; 153 return res;
154} 154}
155 155
156
156/* end of test_gnsrecord_serialization.c */ 157/* end of test_gnsrecord_serialization.c */