diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-09-01 19:10:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-09-01 19:10:01 +0000 |
commit | cf04e8aca91e40a0d8096d01462439d650a63d6e (patch) | |
tree | d6f18b1e0e99ac13a104b120a2fadd0e5567e948 /cpukit/libnetworking | |
parent | *** empty log message *** (diff) | |
download | rtems-cf04e8aca91e40a0d8096d01462439d650a63d6e.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r-- | cpukit/libnetworking/net/if.h | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/net/pppcompress.c | 6 | ||||
-rw-r--r-- | cpukit/libnetworking/net/raw_usrreq.c | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/netinet/in_cksum.c | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/netinet/ip.h | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/netinet/ip_divert.c | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/sys/mbuf.h | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/cpukit/libnetworking/net/if.h b/cpukit/libnetworking/net/if.h index 45d9e0bd7f..7a5d048f35 100644 --- a/cpukit/libnetworking/net/if.h +++ b/cpukit/libnetworking/net/if.h @@ -212,7 +212,7 @@ struct ifreq { struct sockaddr ifru_broadaddr; short ifru_flags[2]; int32_t ifru_metric; - int ifru_mtu; + int32_t ifru_mtu; int ifru_phys; int ifru_media; caddr_t ifru_data; diff --git a/cpukit/libnetworking/net/pppcompress.c b/cpukit/libnetworking/net/pppcompress.c index 5c924e0446..ea98bdd852 100644 --- a/cpukit/libnetworking/net/pppcompress.c +++ b/cpukit/libnetworking/net/pppcompress.c @@ -426,10 +426,10 @@ vj_uncompress_tcp(bufp, len, type, comp) * header (we assume the packet we were handed has enough space to * prepend 128 bytes of header). */ - if ((int)cp & 3) { + if ((intptr_t)cp & 3) { if (len > 0) - (void) ovbcopy(cp, (caddr_t)((int)cp &~ 3), len); - cp = (u_char *)((int)cp &~ 3); + (void) ovbcopy(cp, (caddr_t)((intptr_t)cp &~ 3), len); + cp = (u_char *)((intptr_t)cp &~ 3); } cp -= hlen; len += hlen; diff --git a/cpukit/libnetworking/net/raw_usrreq.c b/cpukit/libnetworking/net/raw_usrreq.c index fb4faf4d6d..bb79355d1f 100644 --- a/cpukit/libnetworking/net/raw_usrreq.c +++ b/cpukit/libnetworking/net/raw_usrreq.c @@ -174,7 +174,7 @@ raw_usrreq(so, req, m, nam, control) error = EACCES; break; } - error = raw_attach(so, (int)nam); + error = raw_attach(so, (intptr_t)nam); break; /* diff --git a/cpukit/libnetworking/netinet/in_cksum.c b/cpukit/libnetworking/netinet/in_cksum.c index e4d8698dee..6f356b995b 100644 --- a/cpukit/libnetworking/netinet/in_cksum.c +++ b/cpukit/libnetworking/netinet/in_cksum.c @@ -117,7 +117,7 @@ in_cksum(m, len) /* * Force to even boundary. */ - if ((1 & (int) w) && (mlen > 0)) { + if ((1 & (intptr_t) w) && (mlen > 0)) { REDUCE; sum <<= 8; s_util.c[0] = *(u_char *)w; diff --git a/cpukit/libnetworking/netinet/ip.h b/cpukit/libnetworking/netinet/ip.h index e8e540a37d..148f68874e 100644 --- a/cpukit/libnetworking/netinet/ip.h +++ b/cpukit/libnetworking/netinet/ip.h @@ -94,7 +94,7 @@ struct ip { CTASSERT(sizeof (struct ip) == 20); #endif -#define IP_MAXPACKET 65535 /* maximum packet size */ +#define IP_MAXPACKET 65535L /* maximum packet size */ /* * Definitions for IP type of service (ip_tos) diff --git a/cpukit/libnetworking/netinet/ip_divert.c b/cpukit/libnetworking/netinet/ip_divert.c index c681f8dc10..a28f606b88 100644 --- a/cpukit/libnetworking/netinet/ip_divert.c +++ b/cpukit/libnetworking/netinet/ip_divert.c @@ -295,7 +295,7 @@ div_usrreq(so, req, m, nam, control) if (error) break; inp = (struct inpcb *)so->so_pcb; - inp->inp_ip_p = (int)nam; /* XXX */ + inp->inp_ip_p = (intptr_t)nam; /* XXX */ inp->inp_flags |= INP_HDRINCL; /* The socket is always "connected" because we always know "where" to send the packet */ diff --git a/cpukit/libnetworking/sys/mbuf.h b/cpukit/libnetworking/sys/mbuf.h index c5e34fce11..813d920c7b 100644 --- a/cpukit/libnetworking/sys/mbuf.h +++ b/cpukit/libnetworking/sys/mbuf.h @@ -83,7 +83,7 @@ struct m_hdr { */ struct pkthdr { struct ifnet *rcvif; /* rcv interface */ - int len; /* total packet length */ + int32_t len; /* total packet length */ }; /* |