From e1e036e776bdffff54988d563a2e297438a6ef46 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sat, 15 Dec 2018 15:37:42 +1100 Subject: [PATCH] hton: avoid using type names as variables --- test/hton.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/hton.cpp b/test/hton.cpp index 9d46eb50..c8bfa124 100644 --- a/test/hton.cpp +++ b/test/hton.cpp @@ -18,14 +18,14 @@ main (void) { cruft::TAP::logger tap; - uint16_t u16 = 0x1358; - uint32_t u32 = 0x12345678; + uint16_t val16 = 0x1358; + uint32_t val32 = 0x12345678; - tap.expect_eq (htons (u16), cruft::hton (u16), "htons"); - tap.expect_eq (htonl (u32), cruft::hton (u32), "htonl"); + tap.expect_eq (htons (val16), cruft::hton (val16), "htons"); + tap.expect_eq (htonl (val32), cruft::hton (val32), "htonl"); - tap.expect_eq (ntohs (u16), cruft::hton (u16), "ntohs"); - tap.expect_eq (ntohl (u32), cruft::hton (u32), "ntohl"); + tap.expect_eq (ntohs (val16), cruft::hton (val16), "ntohs"); + tap.expect_eq (ntohl (val32), cruft::hton (val32), "ntohl"); return tap.status (); }