Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-06-03 22:42:09 +0400
committerJeff Johnston <jjohnstn@redhat.com>2003-06-03 22:42:09 +0400
commit702ceb233d9b363278387bdcbac69c86a0b83660 (patch)
treea20934403520c540f82ae1c3c3dbddfbaafa7d70 /newlib/libc/time
parent15824b7c543f4e1f4ec84cd8117377054e3b79f5 (diff)
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)