summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/POSIX/htonl.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/libtests/POSIX/htonl.c')
-rw-r--r--testsuites/libtests/POSIX/htonl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/testsuites/libtests/POSIX/htonl.c b/testsuites/libtests/POSIX/htonl.c
index ecdaa9c05e..9ebc768066 100644
--- a/testsuites/libtests/POSIX/htonl.c
+++ b/testsuites/libtests/POSIX/htonl.c
@@ -12,17 +12,20 @@
#include <arpa/inet.h>
-int
-main (void)
+int main(void)
{
uint32_t u32;
uint16_t u16;
u32 = htonl(0x12345678);
+ (void) u32;
u16 = htons(0x1234);
+ (void) u16;
u32 = ntohl(0x12345678);
+ (void) u32;
u16 = ntohs(0x1234);
+ (void) u16;
return 0;
}