lint removal -- nothing of import

This commit is contained in:
jwalz
2003-08-29 17:23:19 +00:00
parent 2d294c47f8
commit 2ea07652d8
6 changed files with 6 additions and 6 deletions

View File

@@ -2036,7 +2036,7 @@ E void NDECL(u_init);
E void FDECL(hurtmarmor,(struct monst *,int));
E boolean FDECL(attack_checks, (struct monst *,struct obj *));
E void FDECL(check_caitiff, (struct monst *));
E int FDECL(find_roll_to_hit, (struct monst *,int,struct obj *,int *,int *));
E int FDECL(find_roll_to_hit, (struct monst *,UCHAR_P,struct obj *,int *,int *));
E boolean FDECL(attack, (struct monst *));
E boolean FDECL(hmon, (struct monst *,struct obj *,int));
E int FDECL(damageum, (struct monst *,struct attack *));

View File

@@ -2105,7 +2105,8 @@ set_trap()
You("finish arming %s.",
the(defsyms[trap_to_defsym(what_trap(ttyp))].explanation));
if (((otmp->cursed || Fumbling) && (rnl(10) > 5)) || trapinfo.force_bungle)
dotrap(ttmp, trapinfo.force_bungle ? FORCEBUNGLE : 0);
dotrap(ttmp,
(unsigned)(trapinfo.force_bungle ? FORCEBUNGLE : 0));
} else {
/* this shouldn't happen */
Your("trap setting attempt fails.");

View File

@@ -2517,7 +2517,7 @@ char def;
paniclog("Query truncated: ", query);
reduction += sizeof("...");
truncspot = QBUFSZ - reduction;
(void) strncpy(qbuf, query, truncspot);
(void) strncpy(qbuf, query, (int)truncspot);
qbuf[truncspot] = '\0';
Strcat(qbuf,"...");
return (*windowprocs.win_yn_function)(qbuf, resp, def);

View File

@@ -2672,7 +2672,6 @@ boolean setinitial,setfromfile;
retval = TRUE;
}
else if (!strcmp("number_pad", optname)) {
int i;
static const char *npchoices[3] =
{"0 (off)", "1 (on)", "2 (on, DOS compatible)"};
char *npletters = "abc";

View File

@@ -688,7 +688,7 @@ boolean FDECL((*allow), (OBJ_P));/* allow function */
if ((qflags & FEEL_COCKATRICE) && curr->otyp == CORPSE &&
will_feel_cockatrice(curr, FALSE)) {
destroy_nhwindow(win); /* stop the menu and revert */
look_here(0, FALSE);
(void) look_here(0, FALSE);
return 0;
}
if ((!(qflags & INVORDER_SORT) || curr->oclass == *pack)

View File

@@ -230,7 +230,7 @@ struct monst *mtmp;
int
find_roll_to_hit(mtmp, aatyp, weapon, attk_count, role_roll_penalty)
register struct monst *mtmp;
int aatyp; /* usually AT_WEAP or AT_KICK */
uchar aatyp; /* usually AT_WEAP or AT_KICK */
struct obj *weapon; /* uwep or uswapwep or NULL */
int *attk_count, *role_roll_penalty;
{