The Samba-Bugzilla – Attachment 5122 Details for
Bug 6842
Fails to build on QNX due to missing definition of uint_t
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Change uint_t to unsigned int in lib/talloc
0002-Change-uint_t-to-unsigned-int-in-lib-talloc.patch (text/plain), 3.19 KB, created by
Matt Kraai (mail address dead)
on 2010-01-05 10:59:25 UTC
(
hide
)
Description:
Change uint_t to unsigned int in lib/talloc
Filename:
MIME Type:
Creator:
Matt Kraai (mail address dead)
Created:
2010-01-05 10:59:25 UTC
Size:
3.19 KB
patch
obsolete
>From 83bdb1a293ed81d753eb9ed00734444d98e02f0d Mon Sep 17 00:00:00 2001 >From: Matt Kraai <mkraai@beckman.com> >Date: Tue, 5 Jan 2010 09:40:26 -0800 >Subject: [PATCH 2/8] Change uint_t to unsigned int in lib/talloc > >--- > lib/talloc/talloc.3.xml | 6 +++--- > lib/talloc/talloc_guide.txt | 6 +++--- > 2 files changed, 6 insertions(+), 6 deletions(-) > >diff --git a/lib/talloc/talloc.3.xml b/lib/talloc/talloc.3.xml >index 8d9e082..cc36f60 100644 >--- a/lib/talloc/talloc.3.xml >+++ b/lib/talloc/talloc.3.xml >@@ -689,7 +689,7 @@ if (ptr) memcpy(ptr, p, strlen(p)+1);</programlisting> > </para> > <programlisting>talloc_set_name_const(ptr, ptr)</programlisting> > </refsect2> >- <refsect2><title>(type *)talloc_array(const void *ctx, type, uint_t count);</title> >+ <refsect2><title>(type *)talloc_array(const void *ctx, type, unsigned int count);</title> > <para> > The talloc_array() macro is equivalent to: > </para> >@@ -699,14 +699,14 @@ if (ptr) memcpy(ptr, p, strlen(p)+1);</programlisting> > multiply, returning NULL if the multiply overflows. > </para> > </refsect2> >- <refsect2><title>void *talloc_array_size(const void *ctx, size_t size, uint_t count);</title> >+ <refsect2><title>void *talloc_array_size(const void *ctx, size_t size, unsigned int count);</title> > <para> > 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. > </para> > </refsect2> >- <refsect2><title>(typeof(ptr)) talloc_array_ptrtype(const void *ctx, ptr, uint_t count);</title> >+ <refsect2><title>(typeof(ptr)) talloc_array_ptrtype(const void *ctx, ptr, unsigned int count);</title> > <para> > 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 >diff --git a/lib/talloc/talloc_guide.txt b/lib/talloc/talloc_guide.txt >index 01de806..79387bf 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 >-- >1.6.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 6842
:
5099
|
5100
|
5121
| 5122 |
5123
|
5124
|
5125
|
5126
|
5127
|
5128