diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-05-20 23:56:09 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-05-20 23:56:09 +0000 |
commit | 430896bd6aeebd7e73388bde2c2b6b6710450b8a (patch) | |
tree | 38150f2b1409981b76be6ab88501fbaa82bfae0d | |
parent | 5dd4da2d24cbc842f6f3863ea1fb3c199efb853b (diff) |
(obstack_specify_allocation_with_arg, obstack_chunkfun,
obstack_freefun): Fix casts.
-rw-r--r-- | malloc/obstack.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/malloc/obstack.h b/malloc/obstack.h index 54c4d51457..b60828b6ae 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__ */ |