diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-08-28 18:21:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:16:53 -0500 |
commit | 59057c8d56629a941ab412fa195dea7c8c486b21 (patch) | |
tree | 0ce8b1b713f7c95a70801b1074654c4187c37728 /source4/lib/talloc/talloc_guide.txt | |
parent | 3ddab071eb81023fa99e69d0a8a2d696cf56db70 (diff) | |
download | samba-59057c8d56629a941ab412fa195dea7c8c486b21.tar.gz samba-59057c8d56629a941ab412fa195dea7c8c486b21.tar.bz2 samba-59057c8d56629a941ab412fa195dea7c8c486b21.zip |
r17895: - talloc_increase_ref_count() can fail
- make talloc_reference() typesafe when gcc >= 3 is used
metze
(This used to be commit 933d1b47ad614d02cc02b602e704948b342febdb)
Diffstat (limited to 'source4/lib/talloc/talloc_guide.txt')
-rw-r--r-- | source4/lib/talloc/talloc_guide.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/talloc/talloc_guide.txt b/source4/lib/talloc/talloc_guide.txt index 7f1a3ea6cd..2c32fb1a87 100644 --- a/source4/lib/talloc/talloc_guide.txt +++ b/source4/lib/talloc/talloc_guide.txt @@ -193,7 +193,7 @@ destructor is only called when the memory is just about to go away. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -void talloc_increase_ref_count(const void *ptr); +int talloc_increase_ref_count(const void *ptr); The talloc_increase_ref_count(ptr) function is exactly equivalent to: @@ -202,6 +202,7 @@ The talloc_increase_ref_count(ptr) function is exactly equivalent to: You can use either syntax, depending on which you think is clearer in your code. +It returns 0 on success and -1 on failure. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- void talloc_set_name(const void *ptr, const char *fmt, ...); |