aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_hexcoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_hexcoder.c')
-rw-r--r--src/util/test_hexcoder.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/util/test_hexcoder.c b/src/util/test_hexcoder.c
index f73989a0e..69e2061cb 100644
--- a/src/util/test_hexcoder.c
+++ b/src/util/test_hexcoder.c
@@ -11,13 +11,13 @@
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
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19 19
20*/ 20 */
21/** 21/**
22 * @author Christian Grothoff 22 * @author Christian Grothoff
23 * @file dns/test_hexcoder.c 23 * @file dns/test_hexcoder.c
@@ -32,23 +32,23 @@
32 32
33 33
34int 34int
35main (int argc, 35main(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