caddr_t is obsolete. Replace by void *, except for struct empfile
member cache, which becomes char * to keep pointer arithmetic simple.
This commit is contained in:
parent
059353e957
commit
dcfd251f95
40 changed files with 80 additions and 82 deletions
|
@ -136,7 +136,7 @@ radmap2(int owner,
|
|||
if (!pr_flag)
|
||||
return;
|
||||
snxtitem_dist(&ni, EF_PLANE, cx, cy, range);
|
||||
while (nxtitem(&ni, (caddr_t)&plane)) {
|
||||
while (nxtitem(&ni, &plane)) {
|
||||
if (plane.pln_own == 0)
|
||||
continue;
|
||||
/* Used to have 'ghosts' when scanning whole world --ts */
|
||||
|
@ -149,7 +149,7 @@ radmap2(int owner,
|
|||
}
|
||||
}
|
||||
snxtitem_dist(&ni, EF_SHIP, cx, cy, range);
|
||||
while (nxtitem(&ni, (caddr_t)&ship)) {
|
||||
while (nxtitem(&ni, &ship)) {
|
||||
if (ship.shp_own == 0)
|
||||
continue;
|
||||
/* Used to have 'ghosts' when scanning whole world --ts */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue