aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-06-03 18:42:09 +0000
committerJeff Johnston <jjohnstn@redhat.com>2003-06-03 18:42:09 +0000
commit702ceb233d9b363278387bdcbac69c86a0b83660 (patch)
treea20934403520c540f82ae1c3c3dbddfbaafa7d70 /newlib
parent15824b7c543f4e1f4ec84cd8117377054e3b79f5 (diff)
downloadnewlib-702ceb233d9b363278387bdcbac69c86a0b83660.zip
newlib-702ceb233d9b363278387bdcbac69c86a0b83660.tar.gz
newlib-702ceb233d9b363278387bdcbac69c86a0b83660.tar.bz2
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.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog6
-rw-r--r--newlib/libc/time/tzset_r.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index e470dca..8087958 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -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.
diff --git a/newlib/libc/time/tzset_r.c b/newlib/libc/time/tzset_r.c
index 9469028..ad8267d 100644
--- a/newlib/libc/time/tzset_r.c
+++ b/newlib/libc/time/tzset_r.c
@@ -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)