forked from Imagelibrary/rtems
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:
@@ -1,5 +1,7 @@
|
|||||||
2007-03-28 Ralf Corsépius <ralf.corsepius@rtems.org>
|
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().
|
* libnetworking/netinet/ip_input.c: Eliminate __P().
|
||||||
Change "int next" to "int32_t next" for 16bit targets.
|
Change "int next" to "int32_t next" for 16bit targets.
|
||||||
* libnetworking/netinet/tcp_input.c: Eliminate __P().
|
* libnetworking/netinet/tcp_input.c: Eliminate __P().
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ bsd_init (void)
|
|||||||
printf ("Can't get network cluster memory.\n");
|
printf ("Can't get network cluster memory.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
|
p = (char *)(((intptr_t)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
|
||||||
mbutl = (struct mbuf *)p;
|
mbutl = (struct mbuf *)p;
|
||||||
for (i = 0; i < nmbclusters; i++) {
|
for (i = 0; i < nmbclusters; i++) {
|
||||||
((union mcluster *)p)->mcl_next = mclfree;
|
((union mcluster *)p)->mcl_next = mclfree;
|
||||||
|
|||||||
Reference in New Issue
Block a user