]> sourceware.org Git - newlib-cygwin.git/commitdiff
2004-01-08 Joel Sherrill <joel@oarcorp.com>
authorJeff Johnston <jjohnstn@redhat.com>
Thu, 8 Jan 2004 19:33:13 +0000 (19:33 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Thu, 8 Jan 2004 19:33:13 +0000 (19:33 +0000)
        * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
        Remove warnings.

newlib/ChangeLog
newlib/libc/ctype/iswctype.c
newlib/libc/include/sys/reent.h
newlib/libc/stdlib/a64l.c

index efadd77f8e8832fb4f2925c45a6ea18560d15e81..5927e5701645ccecf23fc314c572d15da44354b9 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-08  Joel Sherrill  <joel@oarcorp.com>
+
+        * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
+        Remove warnings.
+
 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
 
         * libc/sys/rtems/sys/queue.h: New file.
index fbf5da7be31f4488de153821691172eb70dfbecf..3f3eadfe51a6c0e30612c0b9507a5655b83d6a44 100644 (file)
@@ -62,6 +62,7 @@ _DEFUN(iswctype,(c, desc), wint_t c _AND wctype_t desc)
     case WC_XDIGIT:
       return iswxdigit (c);
     default:
+      return 0; /* eliminate warning */
     }
 
   /* otherwise unknown */
index a5d6f5c9eabc0c249ff28d2a3d6e87781986c8d2..e783e842e96a840ecbecee9c6679d13c40d71a85 100644 (file)
@@ -698,7 +698,7 @@ struct _reent
 #define _REENT_MP_RESULT_K(ptr)        ((ptr)->_result_k)
 #define _REENT_MP_P5S(ptr)     ((ptr)->_p5s)
 #define _REENT_MP_FREELIST(ptr)        ((ptr)->_freelist)
-#define _REENT_ASCTIME_BUF(ptr)        (&(ptr)->_new._reent._asctime_buf)
+#define _REENT_ASCTIME_BUF(ptr)        ((ptr)->_new._reent._asctime_buf)
 #define _REENT_TM(ptr)         (&(ptr)->_new._reent._localtime_buf)
 #define _REENT_EMERGENCY(ptr)  ((ptr)->_emergency)
 #define _REENT_STRTOK_LAST(ptr)        ((ptr)->_new._reent._strtok_last)
index 9a56a9141abaf4bcfb9ee3fd018e3222c0a32f62..93c8e834bd455fa4adc8afbfd76585ea05861d82 100644 (file)
@@ -62,7 +62,7 @@ long
 _DEFUN (a64l, (input),
        const char *input)
 {
-  char *ptr;
+  const char *ptr;
   char ch;
   int i, digit;
   unsigned long result = 0;
This page took 0.05285 seconds and 5 git commands to generate.