}
/* reasonbuf must be at least BUFSZ, supplied by caller */
+/*ARGSUSED*/
int
validate_prefix_locations(reasonbuf)
char *reasonbuf;
return fd;
}
+/*ARGSUSED*/
static char*
plname_from_file(filename)
const char* filename;
{
if ( saved ) {
int i=0;
- while (saved[i]) free(saved[i++]);
- free(saved);
+ while (saved[i]) free((genericptr_t)saved[i++]);
+ free((genericptr_t)saved);
}
}
u.dy = sgn(u.ty - u.uy);
if (test_move(u.ux, u.uy, u.dx, u.dy, TEST_MOVE))
return TRUE;
- goto done;
+ goto found;
}
tx = px;
ty = py;
return FALSE;
}
-done:
+found:
u.dx = 0;
u.dy = 0;
nomul(0);
boolean cancelled;
if (touch_petrifies(pd) && !resists_ston(magr)) {
- long protector = attk_protection(mattk->aatyp),
+ long protector = attk_protection((int)mattk->aatyp),
wornitems = magr->misc_worn_check;
/* wielded weapon gives same protection as gloves here */
goto assess_dmg;
case AD_STON: /* cockatrice */
{
- long protector = attk_protection(mattk->aatyp),
+ long protector = attk_protection((int)mattk->aatyp),
wornitems = mtmp->misc_worn_check;
/* wielded weapon gives same protection as gloves here */
break;
case WAN_CANCELLATION:
case SPE_CANCELLATION:
- cancel_monst(mtmp, otmp, FALSE, TRUE, FALSE);
+ (void) cancel_monst(mtmp, otmp, FALSE, TRUE, FALSE);
break;
}
if (reveal_invis) {
else if (Cursed_obj(uarmf, FUMBLE_BOOTS))
otmp = uarmf;
goto decurse;
+ /*NOTREACHED*/
break;
case TROUBLE_CURSED_ITEMS:
otmp = worst_cursed_item();
shk_your(yourbuf, obj));
useup(obj);
return(TRUE);
+ /*NOTREACHED*/
break;
#endif
case CORPSE: /* fixed by polder@cs.vu.nl */
break;
case AD_STON:
if (mhit) { /* successful attack */
- long protector = attk_protection(aatyp);
+ long protector = attk_protection((int)aatyp);
/* hero using monsters' AT_MAGC attack is hitting hand to
hand rather than casting a spell */