aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_crypto_crc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_crypto_crc.c')
-rw-r--r--src/util/test_crypto_crc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/test_crypto_crc.c b/src/util/test_crypto_crc.c
index 838da5dbc..fb9d5361b 100644
--- a/src/util/test_crypto_crc.c
+++ b/src/util/test_crypto_crc.c
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -20,7 +20,7 @@
20 For the actual CRC code: 20 For the actual CRC code:
21 Copyright abandoned; this code is in the public domain. 21 Copyright abandoned; this code is in the public domain.
22 Provided to GNUnet by peter@horizon.com 22 Provided to GNUnet by peter@horizon.com
23*/ 23 */
24 24
25/** 25/**
26 * @file util/test_crypto_crc.c 26 * @file util/test_crypto_crc.c
@@ -205,16 +205,16 @@ static int expected[] = {
205}; 205};
206 206
207int 207int
208main (int argc, char *argv[]) 208main(int argc, char *argv[])
209{ 209{
210 char buf[1024]; 210 char buf[1024];
211 int i; 211 int i;
212 212
213 GNUNET_log_setup ("test-crypto-crc", "WARNING", NULL); 213 GNUNET_log_setup("test-crypto-crc", "WARNING", NULL);
214 for (i = 0; i < 1024; i++) 214 for (i = 0; i < 1024; i++)
215 buf[i] = (char) i; 215 buf[i] = (char)i;
216 for (i = 0; i < 1024; i++) 216 for (i = 0; i < 1024; i++)
217 if (expected[i] != GNUNET_CRYPTO_crc32_n (&buf[i], 1024 - i)) 217 if (expected[i] != GNUNET_CRYPTO_crc32_n(&buf[i], 1024 - i))
218 return 1; 218 return 1;
219 return 0; 219 return 0;
220} 220}