aboutsummaryrefslogtreecommitdiff
path: root/lib/endian.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-31 11:56:08 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-31 12:17:00 +0000
commitf4413ca65a2b5bf469df3a4ab05d965e5f59c91d (patch)
tree0b6dcbe899e8962f04a54d5aa69097a48785a386 /lib/endian.c
parent7873f9bdbd9ec1f0746ca0b4cd6468ecac0e2880 (diff)
endian: Renamed functions for curl API naming convention
Diffstat (limited to 'lib/endian.c')
-rw-r--r--lib/endian.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/endian.c b/lib/endian.c
index e1c2142d1..cf3e3c5e0 100644
--- a/lib/endian.c
+++ b/lib/endian.c
@@ -29,7 +29,7 @@
* package to whatever endian format we're using natively. Argument is a
* pointer to a 2 byte buffer.
*/
-unsigned short readshort_le(unsigned char *buf)
+unsigned short Curl_read16_le(unsigned char *buf)
{
return (unsigned short)(((unsigned short)buf[0]) |
((unsigned short)buf[1] << 8));
@@ -40,13 +40,13 @@ unsigned short readshort_le(unsigned char *buf)
* incoming package to whatever endian format we're using natively.
* Argument is a pointer to a 4 byte buffer.
*/
-unsigned int readint_le(unsigned char *buf)
+unsigned int Curl_read32_le(unsigned char *buf)
{
return ((unsigned int)buf[0]) | ((unsigned int)buf[1] << 8) |
((unsigned int)buf[2] << 16) | ((unsigned int)buf[3] << 24);
}
-void write32_le(const int value, unsigned char *buffer)
+void Curl_write32_le(const int value, unsigned char *buffer)
{
buffer[0] = (char)(value & 0x000000FF);
buffer[1] = (char)((value & 0x0000FF00) >> 8);
@@ -56,12 +56,12 @@ void write32_le(const int value, unsigned char *buffer)
#if (CURL_SIZEOF_CURL_OFF_T > 4)
#if defined(HAVE_LONGLONG)
-void write64_le(const long long value, unsigned char *buffer)
+void Curl_write64_le(const long long value, unsigned char *buffer)
#else
-void write64_le(const __int64 value, unsigned char *buffer)
+void Curl_write64_le(const __int64 value, unsigned char *buffer)
#endif
{
- write32_le((int)value, buffer);
- write32_le((int)(value >> 32), buffer + 4);
+ Curl_write32_le((int)value, buffer);
+ Curl_write32_le((int)(value >> 32), buffer + 4);
}
#endif