aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/udhcp/dumpleases.c2
-rw-r--r--networking/udhcp/files.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c
index 2eaadb6eb..341815a69 100644
--- a/networking/udhcp/dumpleases.c
+++ b/networking/udhcp/dumpleases.c
@@ -9,7 +9,7 @@
#if BB_LITTLE_ENDIAN
static inline uint64_t hton64(uint64_t v)
{
- return (((uint64_t)htonl(v)) << 32) | htonl(v >> 32);
+ return SWAP_BE64(v);
}
#else
#define hton64(v) (v)
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c
index f5348f658..68b2085a9 100644
--- a/networking/udhcp/files.c
+++ b/networking/udhcp/files.c
@@ -14,7 +14,7 @@
#if BB_LITTLE_ENDIAN
static inline uint64_t hton64(uint64_t v)
{
- return (((uint64_t)htonl(v)) << 32) | htonl(v >> 32);
+ return SWAP_BE64(v);
}
#else
#define hton64(v) (v)