OSDN Git Service

2003-06-03 Till Straumann <strauman@SLAC.Stanford.EDU>
authorjjohnstn <jjohnstn>
Tue, 3 Jun 2003 18:42:08 +0000 (18:42 +0000)
committerjjohnstn <jjohnstn>
Tue, 3 Jun 2003 18:42:08 +0000 (18:42 +0000)
        * 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.

newlib/ChangeLog
newlib/libc/time/tzset_r.c

index e470dca..8087958 100644 (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.
index 9469028..ad8267d 100644 (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)