From: Ulrich Drepper Date: Tue, 20 May 1997 23:56:09 +0000 (+0000) Subject: (obstack_specify_allocation_with_arg, obstack_chunkfun, X-Git-Tag: cvs/libc-2_0_4~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=430896bd6aeebd7e73388bde2c2b6b6710450b8a;p=thirdparty%2Fglibc.git (obstack_specify_allocation_with_arg, obstack_chunkfun, obstack_freefun): Fix casts. --- diff --git a/malloc/obstack.h b/malloc/obstack.h index 54c4d514576..b60828b6aeb 100644 --- a/malloc/obstack.h +++ b/malloc/obstack.h @@ -307,13 +307,14 @@ extern int obstack_exit_failure; #define obstack_specify_allocation_with_arg(h, size, alignment, chunkfun, freefun, arg) \ _obstack_begin_1 ((h), (size), (alignment), \ - (void *(*) (long)) (chunkfun), (void (*) (void *)) (freefun), (arg)) + (void *(*) (void *, long)) (chunkfun), \ + (void (*) (void *, void *)) (freefun), (arg)) #define obstack_chunkfun(h, newchunkfun) \ - ((h) -> chunkfun = (struct _obstack_chunk *(*)(long)) (newchunkfun)) + ((h) -> chunkfun = (struct _obstack_chunk *(*)(void *, long)) (newchunkfun)) #define obstack_freefun(h, newfreefun) \ - ((h) -> freefun = (void (*)(void *)) (newfreefun)) + ((h) -> freefun = (void (*)(void *, struct _obstack_chunk *)) (newfreefun)) #else @@ -583,7 +584,7 @@ __extension__ \ #endif /* not __GNUC__ or not __STDC__ */ #ifdef __cplusplus -} +} /* C++ */ #endif #endif /* not __OBSTACK_H__ */