From 000f7a8cc91fbf5bfbe573d532488ec2049300ef Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 26 Nov 2008 21:45:55 +0000 Subject: [PATCH] Update git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8090 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/filed/xattr.c | 2 +- bacula/src/lib/mem_pool.c | 8 ++++---- bacula/src/lib/mem_pool.h | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bacula/src/filed/xattr.c b/bacula/src/filed/xattr.c index acbf968d1b..d8b51503bd 100644 --- a/bacula/src/filed/xattr.c +++ b/bacula/src/filed/xattr.c @@ -202,7 +202,7 @@ static uint32_t serialize_xattr_stream(JCR *jcr, uint32_t expected_serialize_len static bool generic_xattr_build_streams(JCR *jcr, FF_PKT *ff_pkt, int stream) { int count = 0; - ssize_t xattr_list_len, + int32_t xattr_list_len, xattr_value_len, expected_serialize_len = 0, serialize_len = 0; diff --git a/bacula/src/lib/mem_pool.c b/bacula/src/lib/mem_pool.c index e36f63df6a..7e041c9a68 100644 --- a/bacula/src/lib/mem_pool.c +++ b/bacula/src/lib/mem_pool.c @@ -545,28 +545,28 @@ int pm_strcpy(POOL_MEM &pm, const char *str) * Copy data into a pool memory buffer pm * Returns: length of data copied */ -int pm_memcpy(POOLMEM **pm, const void *data, size_t n) +int pm_memcpy(POOLMEM **pm, const void *data, int32_t n) { *pm = check_pool_memory_size(*pm, n); memcpy(*pm, data, n); return n; } -int pm_memcpy(POOLMEM *&pm, const void *data, size_t n) +int pm_memcpy(POOLMEM *&pm, const void *data, int32_t n) { pm = check_pool_memory_size(pm, n); memcpy(pm, data, n); return n; } -int pm_memcpy(POOLMEM *&pm, POOL_MEM &data, size_t n) +int pm_memcpy(POOLMEM *&pm, POOL_MEM &data, int32_t n) { pm = check_pool_memory_size(pm, n); memcpy(pm, data.c_str(), n); return n; } -int pm_memcpy(POOL_MEM &pm, const void *data, size_t n) +int pm_memcpy(POOL_MEM &pm, const void *data, int32_t n) { pm.check_size(n); memcpy(pm.c_str(), data, n); diff --git a/bacula/src/lib/mem_pool.h b/bacula/src/lib/mem_pool.h index 942e3cd45b..bd39d75009 100644 --- a/bacula/src/lib/mem_pool.h +++ b/bacula/src/lib/mem_pool.h @@ -113,9 +113,9 @@ int pm_strcpy(POOLMEM *&pm, const char *str); int pm_strcpy(POOL_MEM &pm, const char *str); int pm_strcpy(POOLMEM *&pm, POOL_MEM &str); -int pm_memcpy(POOLMEM **pm, const char *data, size_t n); -int pm_memcpy(POOLMEM *&pm, const char *data, size_t n); -int pm_memcpy(POOL_MEM &pm, const char *data, size_t n); -int pm_memcpy(POOLMEM *&pm, POOL_MEM &data, size_t n); +int pm_memcpy(POOLMEM **pm, const char *data, int32_t n); +int pm_memcpy(POOLMEM *&pm, const char *data, int32_t n); +int pm_memcpy(POOL_MEM &pm, const char *data, int32_t n); +int pm_memcpy(POOLMEM *&pm, POOL_MEM &data, int32_t n); #endif -- 2.39.5