X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Flib%2Fmem_pool.c;h=2c8f9e4f691659a8c85a59f6f04f7e41729e37af;hb=0fa12977628002cc239bb6dbadb473189f71229c;hp=e36f63df6a4b9c6e70b5043b3e5017bf2a5fb767;hpb=2f95f7a77a6f95d2191114fa89cf1a05a02e86d2;p=bacula%2Fbacula diff --git a/bacula/src/lib/mem_pool.c b/bacula/src/lib/mem_pool.c index e36f63df6a..2c8f9e4f69 100644 --- a/bacula/src/lib/mem_pool.c +++ b/bacula/src/lib/mem_pool.c @@ -1,12 +1,12 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2000-2007 Free Software Foundation Europe e.V. + Copyright (C) 2000-2010 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. This program is Free Software; you can redistribute it and/or - modify it under the terms of version two of the GNU General Public + modify it under the terms of version three of the GNU Affero General Public License as published by the Free Software Foundation and included in the file LICENSE. @@ -15,7 +15,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License + You should have received a copy of the GNU Affero General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. @@ -44,7 +44,6 @@ * * Kern E. Sibbald * - * Version $Id$ */ #include "bacula.h" @@ -545,28 +544,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 char *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 char *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 char *data, int32_t n) { pm.check_size(n); memcpy(pm.c_str(), data, n);