This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: type of obstack_base: char* or void*?
- From: Jim Meyering <jim at meyering dot net>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Tue, 29 Jun 2004 08:41:28 +0200
- Subject: Re: type of obstack_base: char* or void*?
- References: <85acyy1ha3.fsf@pi.meyering.net> <40E10B71.8010906@redhat.com>
Ulrich Drepper <drepper@redhat.com> wrote:
>> I think the documentation is right.
>
> I agree and applied the patch.
Thank you.
When I `fixed' obstack.h in gnulib, Paul Eggert
noticed that the parens were wrong.
Here's an additional patch:
Index: malloc/obstack.h
===================================================================
RCS file: /cvs/glibc/libc/malloc/obstack.h,v
retrieving revision 1.19
diff -u -p -r1.19 obstack.h
--- malloc/obstack.h 29 Jun 2004 06:27:54 -0000 1.19
+++ malloc/obstack.h 29 Jun 2004 06:38:40 -0000
@@ -194,7 +194,7 @@ extern int obstack_exit_failure;
Note that this might not be the final address of the object
because a new chunk might be needed to hold the final size. */
-#define obstack_base(h) (void *)((h)->object_base)
+#define obstack_base(h) ((void *) (h)->object_base)
/* Size for allocating ordinary chunks. */