summaryrefslogtreecommitdiff
path: root/source4/lib/talloc/talloc.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-07-21 10:34:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:10:16 -0500
commit550f5fb26e67f46eead182476f7a9bcfd1ac5dc0 (patch)
treeeb460e5e46e73de6a27a18dd6d86bc153ab68457 /source4/lib/talloc/talloc.c
parent5f741e17d7341c0f8d317a0974d6a1cc123fb73e (diff)
downloadsamba-550f5fb26e67f46eead182476f7a9bcfd1ac5dc0.tar.gz
samba-550f5fb26e67f46eead182476f7a9bcfd1ac5dc0.tar.bz2
samba-550f5fb26e67f46eead182476f7a9bcfd1ac5dc0.zip
r17176: remove off_t from talloc. size_t is large enough to hold
the max amount of memory of one process metze (This used to be commit f47b7bb656c8854c16c5a28ba24d18eeb22b6e22)
Diffstat (limited to 'source4/lib/talloc/talloc.c')
-rw-r--r--source4/lib/talloc/talloc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/lib/talloc/talloc.c b/source4/lib/talloc/talloc.c
index 2ebaafbb83..ca76b05332 100644
--- a/source4/lib/talloc/talloc.c
+++ b/source4/lib/talloc/talloc.c
@@ -735,11 +735,11 @@ void *_talloc_steal(const void *new_ctx, const void *ptr)
/*
return the total size of a talloc pool (subtree)
*/
-off_t talloc_total_size(const void *ptr)
+size_t talloc_total_size(const void *ptr)
{
- off_t total = 0;
+ size_t total = 0;
struct talloc_chunk *c, *tc;
-
+
if (ptr == NULL) {
ptr = null_context;
}
@@ -768,9 +768,9 @@ off_t talloc_total_size(const void *ptr)
/*
return the total number of blocks in a talloc pool (subtree)
*/
-off_t talloc_total_blocks(const void *ptr)
+size_t talloc_total_blocks(const void *ptr)
{
- off_t total = 0;
+ size_t total = 0;
struct talloc_chunk *c, *tc = talloc_chunk_from_ptr(ptr);
if (tc->flags & TALLOC_FLAG_LOOP) {