diff options
Diffstat (limited to 'src/util/test_common_endian.c')
-rw-r--r-- | src/util/test_common_endian.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/util/test_common_endian.c b/src/util/test_common_endian.c index 02de4b5c6..0fc23fb44 100644 --- a/src/util/test_common_endian.c +++ b/src/util/test_common_endian.c | |||
@@ -24,17 +24,17 @@ | |||
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_util_lib.h" | 25 | #include "gnunet_util_lib.h" |
26 | 26 | ||
27 | #define CHECK(n) if (n != GNUNET_htonll(GNUNET_ntohll(n))) return 1; | 27 | #define CHECK(n) if (n != GNUNET_htonll (GNUNET_ntohll (n))) return 1; |
28 | 28 | ||
29 | int | 29 | int |
30 | main(int argc, char *argv[]) | 30 | main (int argc, char *argv[]) |
31 | { | 31 | { |
32 | GNUNET_log_setup("test-common-endian", "WARNING", NULL); | 32 | GNUNET_log_setup ("test-common-endian", "WARNING", NULL); |
33 | CHECK(1); | 33 | CHECK (1); |
34 | CHECK(0x12345678); | 34 | CHECK (0x12345678); |
35 | CHECK(123456789012345LL); | 35 | CHECK (123456789012345LL); |
36 | if ((0x1234567890ABCDEFLL != GNUNET_htonll(0xEFCDAB9078563412LL)) && | 36 | if ((0x1234567890ABCDEFLL != GNUNET_htonll (0xEFCDAB9078563412LL)) && |
37 | 42 != htonl(42)) | 37 | (42 != htonl (42)) ) |
38 | return 1; | 38 | return 1; |
39 | return 0; | 39 | return 0; |
40 | } | 40 | } |