summaryrefslogtreecommitdiff
path: root/networking/udhcp/dumpleases.c
diff options
context:
space:
mode:
authorDenys Vlasenko2010-10-18 11:39:47 +0200
committerDenys Vlasenko2010-10-18 11:39:47 +0200
commitb102e12253078e8c0ebdeeb5e1893ea6a025a700 (patch)
tree63ad7f83781bea9185d72b75c28a9cb19cb04515 /networking/udhcp/dumpleases.c
parent06f719fd79fe15ce6fd5431bc58fcb22851de24d (diff)
downloadbusybox-b102e12253078e8c0ebdeeb5e1893ea6a025a700.zip
busybox-b102e12253078e8c0ebdeeb5e1893ea6a025a700.tar.gz
*: use SWAP_BE64 instead of open-coding it
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'networking/udhcp/dumpleases.c')
-rw-r--r--networking/udhcp/dumpleases.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c
index 2eaadb6..341815a 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)