summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/sys
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2006-08-30 17:20:33 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2006-08-30 17:20:33 +0000
commitae5a79c349615f239308a38dc2023d0c58980b7a (patch)
treeefe76b15a2e48fddec57f6a128bd0dc4913c2059 /cpukit/libnetworking/sys
parent2006-08-30 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-ae5a79c349615f239308a38dc2023d0c58980b7a.tar.bz2
2006-08-30 Joel Sherrill <joel@OARcorp.com>
* libcsupport/include/sys/ioccom.h, libnetworking/kern/uipc_socket2.c, libnetworking/net/ethernet.h, libnetworking/net/if.h, libnetworking/net/if_ethersubr.c, libnetworking/net/if_ppp.c, libnetworking/net/if_pppvar.h, libnetworking/net/ppp_tty.c, libnetworking/net/pppcompress.c, libnetworking/net/slcompress.c, libnetworking/netinet/in.h, libnetworking/netinet/ip_icmp.c, libnetworking/netinet/tcp.h, libnetworking/netinet/tcp_seq.h, libnetworking/sys/protosw.h, libnetworking/sys/socketvar.h: Remove warnings. Most of the warnings were 16/32 bit integer sizing issues. Some constants had L appended, some had casts add, some types were changed to reflect a bit width requirement.
Diffstat (limited to 'cpukit/libnetworking/sys')
-rw-r--r--cpukit/libnetworking/sys/protosw.h4
-rw-r--r--cpukit/libnetworking/sys/socketvar.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libnetworking/sys/protosw.h b/cpukit/libnetworking/sys/protosw.h
index 13bbc26cee..bdf17eca47 100644
--- a/cpukit/libnetworking/sys/protosw.h
+++ b/cpukit/libnetworking/sys/protosw.h
@@ -92,8 +92,8 @@ struct protosw {
struct pr_usrreqs *pr_usrreqs; /* supersedes pr_usrreq() */
};
-#define PR_SLOWHZ 2 /* 2 slow timeouts per second */
-#define PR_FASTHZ 5 /* 5 fast timeouts per second */
+#define PR_SLOWHZ 2L /* 2 slow timeouts per second */
+#define PR_FASTHZ 5L /* 5 fast timeouts per second */
/*
* Values for pr_flags.
diff --git a/cpukit/libnetworking/sys/socketvar.h b/cpukit/libnetworking/sys/socketvar.h
index 1fd0abdace..90a6185e58 100644
--- a/cpukit/libnetworking/sys/socketvar.h
+++ b/cpukit/libnetworking/sys/socketvar.h
@@ -90,7 +90,7 @@ struct socket {
void (*sb_wakeup) __P((struct socket *, caddr_t));
caddr_t sb_wakeuparg; /* arg for above */
} so_rcv, so_snd;
-#define SB_MAX (256*1024) /* default for max chars in sockbuf */
+#define SB_MAX (256L*1024L) /* default for max chars in sockbuf */
#define SB_LOCK 0x01 /* lock on data queue */
#define SB_WANT 0x02 /* someone is waiting to lock */
#define SB_WAIT 0x04 /* someone is waiting for data/space */