aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-01-08 19:33:13 +0000
committerJeff Johnston <jjohnstn@redhat.com>2004-01-08 19:33:13 +0000
commitc9524c0cd8a7dfef5761706e7b30bf64a3e2df34 (patch)
treec80264855fb1dd5634195072409933ffb9c9fe93 /newlib
parent9f13ccb3562531b31642db1151f126fe31c972fb (diff)
downloadnewlib-c9524c0cd8a7dfef5761706e7b30bf64a3e2df34.zip
newlib-c9524c0cd8a7dfef5761706e7b30bf64a3e2df34.tar.gz
newlib-c9524c0cd8a7dfef5761706e7b30bf64a3e2df34.tar.bz2
2004-01-08 Joel Sherrill <joel@oarcorp.com>
* libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c: Remove warnings.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/ctype/iswctype.c1
-rw-r--r--newlib/libc/include/sys/reent.h2
-rw-r--r--newlib/libc/stdlib/a64l.c2
4 files changed, 8 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index efadd77..5927e57 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,10 @@
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.
* libc/include/sys/signal.h: Reflect renumbering of signals to
fit into 32-bit mask.
diff --git a/newlib/libc/ctype/iswctype.c b/newlib/libc/ctype/iswctype.c
index fbf5da7..3f3eadf 100644
--- a/newlib/libc/ctype/iswctype.c
+++ b/newlib/libc/ctype/iswctype.c
@@ -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 */
diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h
index a5d6f5c..e783e84 100644
--- a/newlib/libc/include/sys/reent.h
+++ b/newlib/libc/include/sys/reent.h
@@ -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)
diff --git a/newlib/libc/stdlib/a64l.c b/newlib/libc/stdlib/a64l.c
index 9a56a91..93c8e83 100644
--- a/newlib/libc/stdlib/a64l.c
+++ b/newlib/libc/stdlib/a64l.c
@@ -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;