mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08: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 parent
0b07d8724e
commit
fa768dff92
2 files changed
+3
-1
No files matched your search
@@ -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