summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/rtems
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2006-09-01 15:37:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2006-09-01 15:37:47 +0000
commitb3ee778ea92b4a51ab415ee94999ae59cecda5cd (patch)
tree91c1ffd69758cd6338759ae1355c280ae66539ff /cpukit/libnetworking/rtems
parent2006-08-30 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-b3ee778ea92b4a51ab415ee94999ae59cecda5cd.tar.bz2
2006-09-01 Joel Sherrill <joel@OARcorp.com>
* libcsupport/src/malloc.c, libnetworking/rtems/rtems_glue.c, libnetworking/sys/mbuf.h: Remove warnings -- use uintptr_t or properly sized integers.
Diffstat (limited to 'cpukit/libnetworking/rtems')
-rw-r--r--cpukit/libnetworking/rtems/rtems_glue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c
index 657a2f862e..4fb92f442b 100644
--- a/cpukit/libnetworking/rtems/rtems_glue.c
+++ b/cpukit/libnetworking/rtems/rtems_glue.c
@@ -48,8 +48,8 @@ void sysctl_register_all(void *arg);
/*
* Memory allocation
*/
-static int nmbuf = (64 * 1024) / MSIZE;
- int nmbclusters = (128 * 1024) / MCLBYTES;
+static uint32_t nmbuf = (64L * 1024L) / MSIZE;
+ uint32_t nmbclusters = (128L * 1024L) / MCLBYTES;
/*
* Network task synchronization
@@ -175,7 +175,7 @@ bsd_init (void)
*/
p = rtems_bsdnet_malloc_mbuf(nmbuf * MSIZE + MSIZE - 1,MBUF_MALLOC_MBUF);
- p = (char *)(((unsigned int)p + MSIZE - 1) & ~(MSIZE - 1));
+ p = (char *)(((uintptr_t)p + MSIZE - 1) & ~(MSIZE - 1));
if (p == NULL) {
printf ("Can't get network memory.\n");
return -1;