(cons_choose): Clean up somewhat dirty use of union pointers that's
not quite blessed by the standard and prone to trigger compiler warnings.
This commit is contained in:
parent
6482ed03d1
commit
c54149ef39
1 changed files with 3 additions and 2 deletions
|
@ -111,7 +111,6 @@ static int
|
|||
cons_choose(struct ltcomstr *ltcp)
|
||||
{
|
||||
s_char *p;
|
||||
int (*dis)();
|
||||
struct lonstr *lp;
|
||||
struct trtstr *tp;
|
||||
s_char prompt[128];
|
||||
|
@ -148,7 +147,9 @@ cons_choose(struct ltcomstr *ltcp)
|
|||
if ((ltcp->num = onearg(player->argp[2], prompt)) < 0)
|
||||
return RET_SYN;
|
||||
if (!ef_read(ltcp->type, ltcp->num, (caddr_t)<cp->u) ||
|
||||
!(*dis) (ltcp->num, <cp->u)) {
|
||||
!(ltcp->type == EF_TREATY
|
||||
? distrea(ltcp->num, ltcp->u.t)
|
||||
: disloan(ltcp->num, ltcp->u.l))) {
|
||||
pr("%s #%d is not being offered to you!\n", ltcp->Name, ltcp->num);
|
||||
return RET_SYN;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue