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
|
@ -82,7 +82,7 @@ sd(natid att, natid own, coord x, coord y, int noisy, int defending,
|
|||
return 0;
|
||||
eff = 1.0;
|
||||
snxtitem_dist(&ni, EF_SHIP, x, y, 8);
|
||||
while (nxtitem(&ni, (caddr_t)&ship) && eff > 0.30) {
|
||||
while (nxtitem(&ni, &ship) && eff > 0.30) {
|
||||
if (ship.shp_own == att)
|
||||
continue;
|
||||
if (ship.shp_own == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue