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
|
@ -144,7 +144,7 @@ cons_choose(struct ltcomstr *ltcp)
|
|||
sprintf(prompt, "%s number? ", ltcp->Name);
|
||||
if ((ltcp->num = onearg(player->argp[2], prompt)) < 0)
|
||||
return RET_SYN;
|
||||
if (!ef_read(ltcp->type, ltcp->num, (caddr_t)<cp->u) ||
|
||||
if (!ef_read(ltcp->type, ltcp->num, <cp->u) ||
|
||||
!(ltcp->type == EF_TREATY
|
||||
? distrea(ltcp->num, <cp->u.t)
|
||||
: disloan(ltcp->num, <cp->u.l))) {
|
||||
|
@ -204,7 +204,7 @@ loan_accept(struct ltcomstr *ltcp)
|
|||
pr("%s %d is still pending.\n", ltcp->Name, ltcp->num);
|
||||
return RET_OK;
|
||||
}
|
||||
if (!getloan(ltcp->num, (caddr_t)lp)) {
|
||||
if (!getloan(ltcp->num, lp)) {
|
||||
pr("loan_accept: can't read loan; get help!\n");
|
||||
return RET_SYS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue