2003-06-03 Till Straumann <strauman@SLAC.Stanford.EDU>

* libc/time/tzset_r.c: Change local variables that are
        set via sscanf using the %h format specifier to be unsigned short
        instead of int.
This commit is contained in:
Jeff Johnston 2003-06-03 18:42:09 +00:00
parent 15824b7c54
commit 702ceb233d
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-06-03 Till Straumann <strauman@SLAC.Stanford.EDU>
* libc/time/tzset_r.c: Change local variables that are
set via sscanf using the %h format specifier to be unsigned short
instead of int.
2003-05-30 Kelley Cook <kelleycook@wideopenwest.com>
* configure.host: Allow i[34567]86 variant.

View File

@ -28,7 +28,8 @@ _DEFUN (_tzset_r, (reent_ptr),
struct _reent *reent_ptr)
{
char *tzenv;
int hh, mm, ss, sign, m, w, d, n;
unsigned short hh, mm, ss, m, w, d;
int sign, n;
int i, ch;
if ((tzenv = _getenv_r (reent_ptr, "TZ")) == NULL)