]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
talloc - improve doxygen comment of "talloc_move"
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 24 Mar 2011 08:41:19 +0000 (09:41 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 16 Sep 2011 18:41:37 +0000 (20:41 +0200)
Express better that this should be a pointer of a pointer.

Reviewed-by: Tridge
(cherry picked from commit 6723e90d524c8e73f19c06b3ff28867a1a89b14b)
(cherry picked from commit 0c5a41da1375bab225274833ba149ba47df42aec)

lib/talloc/talloc.h

index bf7ef76cbf4c61298503bb837ca63c200aefb858..96c7e2467c27b27dd23107f799603fa855434351 100644 (file)
@@ -400,14 +400,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