diff options
author | Matthew Green <mrg@redhat.com> | 2002-02-09 13:01:46 +0000 |
---|---|---|
committer | Matthew Green <mrg@redhat.com> | 2002-02-09 13:01:46 +0000 |
commit | 82b3ac561c56021c324a79ed549c72b4548fce9d (patch) | |
tree | c42e03bfb693ff9e0d2740649f7807e751b2c9e3 | |
parent | ff86860ba629f504f059a1ec8b2c9945accaffc6 (diff) | |
download | newlib-82b3ac561c56021c324a79ed549c72b4548fce9d.zip newlib-82b3ac561c56021c324a79ed549c72b4548fce9d.tar.gz newlib-82b3ac561c56021c324a79ed549c72b4548fce9d.tar.bz2 |
* libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
_REENT_EMERGENCY_SIZE, not sizeof(char *).
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/sys/reent.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index a4f4ea9..3630b1d 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -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. diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h index d28d201..600e0b1 100644 --- a/newlib/libc/include/sys/reent.h +++ b/newlib/libc/include/sys/reent.h @@ -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) |