type of obstack_base: char* or void*?
Jim Meyering
jim@meyering.net
Tue Jun 29 06:41:00 GMT 2004
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. */
More information about the Libc-alpha
mailing list