summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/rtems
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-03-28 04:43:04 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-03-28 04:43:04 +0000
commitfa768dff928ae2d74c990f91c65cf90ed6df8000 (patch)
treed89f7097ad0a101c781ae6b87cb2e4e99fca11a6 /cpukit/libnetworking/rtems
parent2007-03-28 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-fa768dff928ae2d74c990f91c65cf90ed6df8000.tar.bz2
2007-03-28 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/rtems/rtems_glue.c: Cast to intptr_t instead of "long", because long is not guaranteed to be castable to char*.
Diffstat (limited to 'cpukit/libnetworking/rtems')
-rw-r--r--cpukit/libnetworking/rtems/rtems_glue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c
index 5ccfa75356..1ac5c1cf40 100644
--- a/cpukit/libnetworking/rtems/rtems_glue.c
+++ b/cpukit/libnetworking/rtems/rtems_glue.c
@@ -154,7 +154,7 @@ bsd_init (void)
printf ("Can't get network cluster memory.\n");
return -1;
}
- p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
+ p = (char *)(((intptr_t)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
mbutl = (struct mbuf *)p;
for (i = 0; i < nmbclusters; i++) {
((union mcluster *)p)->mcl_next = mclfree;