mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
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>
|
||||
|
||||
* 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().
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user