Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/libhamcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Beatrici <git@davidebeatrici.dev>2021-05-26 05:17:09 +0300
committerDavide Beatrici <git@davidebeatrici.dev>2021-05-26 05:17:09 +0300
commit2951ae5b61b16c1f4e03ceee88d6db7e1e45362b (patch)
tree59a6d588a2bbdbe4f2c9fdf4a2602b3048bdc11a /Memory.c
parente745c1d1d9e268b3ac2af1b680e1fe28bfaa8080 (diff)
Prefix symbols to prevent potential conflicts when linking to the libraryHEADmaster
Diffstat (limited to 'Memory.c')
-rw-r--r--Memory.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Memory.c b/Memory.c
index 237efb9..c9a8a34 100644
--- a/Memory.c
+++ b/Memory.c
@@ -2,9 +2,7 @@
#include <string.h>
-size_t CompressionBufferSize(const size_t original_size) { return original_size * 2 + 256; }
-
-uint32_t Swap32(const uint32_t value)
+uint32_t Ham_Swap32(const uint32_t value)
{
uint32_t swapped;
((uint8_t *)&swapped)[0] = ((uint8_t *)&value)[3];
@@ -14,7 +12,7 @@ uint32_t Swap32(const uint32_t value)
return swapped;
}
-void WriteAndSeek(void **dst, const void *src, const size_t size)
+void Ham_WriteAndSeek(void **dst, const void *src, const size_t size)
{
if (!dst || !*dst)
{