diff options
Diffstat (limited to 'src/util/test_hexcoder.c')
-rw-r--r-- | src/util/test_hexcoder.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/util/test_hexcoder.c b/src/util/test_hexcoder.c index 69e2061cb..923652a00 100644 --- a/src/util/test_hexcoder.c +++ b/src/util/test_hexcoder.c | |||
@@ -32,23 +32,23 @@ | |||
32 | 32 | ||
33 | 33 | ||
34 | int | 34 | int |
35 | main(int argc, | 35 | main (int argc, |
36 | char *argv[]) | 36 | char *argv[]) |
37 | { | 37 | { |
38 | char buf[strlen(TESTSTRING) + 1]; | 38 | char buf[strlen (TESTSTRING) + 1]; |
39 | char *ret; | 39 | char *ret; |
40 | 40 | ||
41 | GNUNET_log_setup("test-hexcoder", "WARNING", NULL); | 41 | GNUNET_log_setup ("test-hexcoder", "WARNING", NULL); |
42 | ret = GNUNET_DNSPARSER_bin_to_hex(TESTSTRING, | 42 | ret = GNUNET_DNSPARSER_bin_to_hex (TESTSTRING, |
43 | strlen(TESTSTRING) + 1); | 43 | strlen (TESTSTRING) + 1); |
44 | GNUNET_assert(NULL != ret); | 44 | GNUNET_assert (NULL != ret); |
45 | GNUNET_assert(sizeof(buf) == | 45 | GNUNET_assert (sizeof(buf) == |
46 | GNUNET_DNSPARSER_hex_to_bin(ret, | 46 | GNUNET_DNSPARSER_hex_to_bin (ret, |
47 | buf)); | 47 | buf)); |
48 | GNUNET_assert(0 == memcmp(TESTSTRING, | 48 | GNUNET_assert (0 == memcmp (TESTSTRING, |
49 | buf, | 49 | buf, |
50 | sizeof(buf))); | 50 | sizeof(buf))); |
51 | GNUNET_free(ret); | 51 | GNUNET_free (ret); |
52 | return 0; | 52 | return 0; |
53 | } | 53 | } |
54 | 54 | ||