* libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate

_REENT_EMERGENCY_SIZE, not sizeof(char *).
This commit is contained in:
Matthew Green 2002-02-09 13:01:46 +00:00
parent ff86860ba6
commit 82b3ac561c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-02-08 matthew green <mrg@redhat.com>
* libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
_REENT_EMERGENCY_SIZE, not sizeof(char *).
2002-02-08 Alexandre Oliva <aoliva@redhat.com>
Contribute sh64-elf.

View File

@ -345,7 +345,7 @@ struct _reent
_REENT_CHECK(var, _mp, struct _mprec *, sizeof *((var)->_mp), _REENT_INIT_MP(var))
#define _REENT_CHECK_EMERGENCY(var) \
_REENT_CHECK(var, _emergency, char *, sizeof *((var)->_emergency), /* nothing */)
_REENT_CHECK(var, _emergency, char *, _REENT_EMERGENCY_SIZE, /* nothing */)
#define _REENT_SIGNGAM(ptr) ((ptr)->_gamma_signgam)
#define _REENT_RAND_NEXT(ptr) ((ptr)->_r48->_rand_next)