From: jwalz Date: Fri, 29 Aug 2003 17:23:19 +0000 (+0000) Subject: lint removal -- nothing of import X-Git-Tag: MOVE2GIT~1826 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ea07652d8ae2bb01f2a62e89cf5ce2797716676;p=nethack lint removal -- nothing of import --- diff --git a/include/extern.h b/include/extern.h index cadf63eeb..4a189882a 100644 --- a/include/extern.h +++ b/include/extern.h @@ -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 *)); diff --git a/src/apply.c b/src/apply.c index eda64e283..edde51565 100644 --- a/src/apply.c +++ b/src/apply.c @@ -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."); diff --git a/src/cmd.c b/src/cmd.c index ee4796d4b..d3e3249a6 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -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); diff --git a/src/options.c b/src/options.c index 02138dd69..8299e9c38 100644 --- a/src/options.c +++ b/src/options.c @@ -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"; diff --git a/src/pickup.c b/src/pickup.c index 6718a0425..c1fc58e8d 100644 --- a/src/pickup.c +++ b/src/pickup.c @@ -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) diff --git a/src/uhitm.c b/src/uhitm.c index 45517c483..9614311c0 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -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; {