diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-10-31 20:10:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-10-31 20:10:40 +0000 |
commit | 0647cc743f4383b5562bac6c5d29c988ea5e0646 (patch) | |
tree | d7b308b99a7fdbc32f5026845ec541cb8aa63bdc /cpukit | |
parent | 2002-10-31 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-0647cc743f4383b5562bac6c5d29c988ea5e0646.tar.bz2 |
2002-10-31 Joel Sherrill <joel@OARcorp.com>
* libc/rcmd.c, netinet/in_cksum_arm.c: Removed warnings.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/libnetworking/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/libnetworking/libc/rcmd.c | 1 | ||||
-rw-r--r-- | cpukit/libnetworking/netinet/in_cksum_arm.c | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/netinet/in_cksum_arm.h | 2 |
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) |