summaryrefslogtreecommitdiff
path: root/lib/talloc
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-24 09:41:19 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-30 08:45:58 +0200
commit6723e90d524c8e73f19c06b3ff28867a1a89b14b (patch)
tree326bcd158cfb10d155de4883c1a75c3f037f986d /lib/talloc
parent05a9b7c32dd5831d2099a1c634d9380fe12a530e (diff)
downloadsamba-6723e90d524c8e73f19c06b3ff28867a1a89b14b.tar.gz
samba-6723e90d524c8e73f19c06b3ff28867a1a89b14b.tar.bz2
samba-6723e90d524c8e73f19c06b3ff28867a1a89b14b.zip
talloc - improve doxygen comment of "talloc_move"
Express better that this should be a pointer of a pointer. Reviewed-by: Tridge
Diffstat (limited to 'lib/talloc')
-rw-r--r--lib/talloc/talloc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/talloc/talloc.h b/lib/talloc/talloc.h
index 571086193c..64879b744b 100644
--- a/lib/talloc/talloc.h
+++ b/lib/talloc/talloc.h
@@ -402,14 +402,14 @@ const char *talloc_set_name(const void *ptr, const char *fmt, ...) PRINTF_ATTRIB
*
* @param[in] new_ctx The new parent context.
*
- * @param[in] ptr Pointer to the talloc chunk to move.
+ * @param[in] pptr Pointer to the talloc chunk to move.
*
* @return The pointer of the talloc chunk it has been moved to,
* NULL on error.
*/
-void *talloc_move(const void *new_ctx, const void *ptr);
+void *talloc_move(const void *new_ctx, void **pptr);
#else
-#define talloc_move(ctx, ptr) (_TALLOC_TYPEOF(*(ptr)))_talloc_move((ctx),(void *)(ptr))
+#define talloc_move(ctx, pptr) (_TALLOC_TYPEOF(*(pptr)))_talloc_move((ctx),(void *)(pptr))
void *_talloc_move(const void *new_ctx, const void *pptr);
#endif