From 6f6380e670a6f078d673ad276baf67044dbbc8f0 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Tue, 6 Dec 2011 15:15:40 +0100 Subject: [PATCH] use untoh64 instead of non-portable be64toh --- src/libcharon/encoding/payloads/transform_attribute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcharon/encoding/payloads/transform_attribute.c b/src/libcharon/encoding/payloads/transform_attribute.c index 6a6451eb2..a11ee98a4 100644 --- a/src/libcharon/encoding/payloads/transform_attribute.c +++ b/src/libcharon/encoding/payloads/transform_attribute.c @@ -199,7 +199,7 @@ METHOD(transform_attribute_t, get_value, u_int64_t, } memcpy(((char*)&value) + sizeof(value) - this->attribute_value.len, this->attribute_value.ptr, this->attribute_value.len); - return be64toh(value); + return untoh64((char*)&value); } METHOD(transform_attribute_t, get_attribute_type, u_int16_t,