summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-31 20:10:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-31 20:10:40 +0000
commit0647cc743f4383b5562bac6c5d29c988ea5e0646 (patch)
treed7b308b99a7fdbc32f5026845ec541cb8aa63bdc
parentb041968c1995efa0014d778fdb21c7ff8ddd2ea5 (diff)
downloadrtems-0647cc743f4383b5562bac6c5d29c988ea5e0646.tar.bz2
2002-10-31 Joel Sherrill <joel@OARcorp.com>
* libc/rcmd.c, netinet/in_cksum_arm.c: Removed warnings.
-rw-r--r--cpukit/libnetworking/ChangeLog4
-rw-r--r--cpukit/libnetworking/libc/rcmd.c1
-rw-r--r--cpukit/libnetworking/netinet/in_cksum_arm.c2
-rw-r--r--cpukit/libnetworking/netinet/in_cksum_arm.h2
4 files changed, 7 insertions, 2 deletions
diff --git a/cpukit/libnetworking/ChangeLog b/cpukit/libnetworking/ChangeLog
index b14a0d36dd..4c4eccffe3 100644
--- a/cpukit/libnetworking/ChangeLog
+++ b/cpukit/libnetworking/ChangeLog
@@ -1,3 +1,7 @@
+2002-10-31 Joel Sherrill <joel@OARcorp.com>
+
+ * libc/rcmd.c, netinet/in_cksum_arm.c: Removed warnings.
+
2002-10-28 Joel Sherrill <joel@OARcorp.com>
* Pass to eliminate warnings.
diff --git a/cpukit/libnetworking/libc/rcmd.c b/cpukit/libnetworking/libc/rcmd.c
index 6dce728d43..c588172434 100644
--- a/cpukit/libnetworking/libc/rcmd.c
+++ b/cpukit/libnetworking/libc/rcmd.c
@@ -69,6 +69,7 @@ int rresvport();
#define bzero(a,s) memset((a),0,(s))
#define bcmp memcmp
#define bcopy(s,d,i) memcpy(d,s,i)
+int bindresvport(int, struct sockaddr_in *);
#else /* __rtems__ */
extern int innetgr __P(( const char *, const char *, const char *, const char * ));
diff --git a/cpukit/libnetworking/netinet/in_cksum_arm.c b/cpukit/libnetworking/netinet/in_cksum_arm.c
index ef2516eff9..10d21ab2a6 100644
--- a/cpukit/libnetworking/netinet/in_cksum_arm.c
+++ b/cpukit/libnetworking/netinet/in_cksum_arm.c
@@ -149,7 +149,7 @@ in_cksum_internal(struct mbuf *m, int off, int len, u_int sum)
* allow the compiler to pick which specific machine registers to
* use, instead of hard-coding this in the asm code above.
*/
- register u_int tmp1, tmp2, tmp3, tmp4;
+ register u_int tmp1=0, tmp2, tmp3, tmp4;
for (; m && len; m = m->m_next) {
if (m->m_len == 0)
diff --git a/cpukit/libnetworking/netinet/in_cksum_arm.h b/cpukit/libnetworking/netinet/in_cksum_arm.h
index ef2516eff9..10d21ab2a6 100644
--- a/cpukit/libnetworking/netinet/in_cksum_arm.h
+++ b/cpukit/libnetworking/netinet/in_cksum_arm.h
@@ -149,7 +149,7 @@ in_cksum_internal(struct mbuf *m, int off, int len, u_int sum)
* allow the compiler to pick which specific machine registers to
* use, instead of hard-coding this in the asm code above.
*/
- register u_int tmp1, tmp2, tmp3, tmp4;
+ register u_int tmp1=0, tmp2, tmp3, tmp4;
for (; m && len; m = m->m_next) {
if (m->m_len == 0)