summaryrefslogtreecommitdiffstats
path: root/newlib/libc/time
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/libc/time
parent15824b7c543f4e1f4ec84cd8117377054e3b79f5 (diff)
downloadcygnal-702ceb233d9b363278387bdcbac69c86a0b83660.tar.gz
cygnal-702ceb233d9b363278387bdcbac69c86a0b83660.tar.bz2
cygnal-702ceb233d9b363278387bdcbac69c86a0b83660.zip
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/libc/time')
-rw-r--r--newlib/libc/time/tzset_r.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/time/tzset_r.c b/newlib/libc/time/tzset_r.c
index 9469028a4..ad8267d1b 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)