X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=blobdiff_plain;f=lib%2Ftalloc%2Ftalloc_guide.txt;h=79387bfd46e5080f5a730bab7e5e8ab99e25ce66;hp=01de806662d119dfc7804000f1f5b0e2a9c6f02f;hb=2cb2d5317f8428b5eaef2365c815aa34739a80b5;hpb=d4fc2e82012277e5e8570da5d08d62c6847a99c0 diff --git a/lib/talloc/talloc_guide.txt b/lib/talloc/talloc_guide.txt index 01de806662d..79387bfd46e 100644 --- a/lib/talloc/talloc_guide.txt +++ b/lib/talloc/talloc_guide.txt @@ -652,7 +652,7 @@ string. This is equivalent to:: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -((type *)talloc_array(const void *ctx, type, uint_t count); +((type *)talloc_array(const void *ctx, type, unsigned int count); The talloc_array() macro is equivalent to:: @@ -663,14 +663,14 @@ returning NULL if the multiply overflows. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -void *talloc_array_size(const void *ctx, size_t size, uint_t count); +void *talloc_array_size(const void *ctx, size_t size, unsigned int count); The talloc_array_size() function is useful when the type is not known. It operates in the same way as talloc_array(), but takes a size instead of a type. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -(typeof(ptr)) talloc_array_ptrtype(const void *ctx, ptr, uint_t count); +(typeof(ptr)) talloc_array_ptrtype(const void *ctx, ptr, unsigned int count); The talloc_ptrtype() macro should be used when you have a pointer to an array and want to allocate memory of an array to point at with this pointer. When compiling