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*.
This commit is contained in:
Ralf Corsepius
2007-03-28 04:43:04 +00:00
parent 0b07d8724e
commit fa768dff92
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
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*.
* libnetworking/netinet/ip_input.c: Eliminate __P().
Change "int next" to "int32_t next" for 16bit targets.
* libnetworking/netinet/tcp_input.c: Eliminate __P().

View File

@@ -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;