Curl expects size_t as the return type for the write function callback,
but freecwmp always returned a 64 bit int. This produced errors on big
endian 32 bit systems, as the upper 32 bit were always zero.
Contributed by T-Labs, Deutsche Telekom Innovation Laboratories
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
---
src/http/http.c | 2 +-
src/http/http.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/http/http.c b/src/http/http.c
index 19d9faf..278bd27 100644
--- a/src/http/http.c
+++ b/src/http/http.c
@@ -166,7 +166,7 @@ done:
}
#ifdef HTTP_CURL
-static uint64_t
+static size_t
http_get_response(void *buffer, size_t size, size_t rxed, char **msg_in)
{
FC_DEVEL_DEBUG("enter");
diff --git a/src/http/http.h b/src/http/http.h
index 27cd9f4..4b1b14e 100644
--- a/src/http/http.h
+++ b/src/http/http.h
@@ -44,7 +44,7 @@ struct http_server
};
#ifdef HTTP_CURL
-static uint64_t http_get_response(void *buffer, size_t size, size_t rxed, char
**msg_in);
+static size_t http_get_response(void *buffer, size_t size, size_t rxed, char
**msg_in);
#endif /* HTTP_CURL */
int8_t http_client_init(void);
--
1.7.10
|