]> granicus.if.org Git - nethack/commitdiff
lint removal -- nothing of import
authorjwalz <jwalz>
Fri, 29 Aug 2003 17:23:19 +0000 (17:23 +0000)
committerjwalz <jwalz>
Fri, 29 Aug 2003 17:23:19 +0000 (17:23 +0000)
include/extern.h
src/apply.c
src/cmd.c
src/options.c
src/pickup.c
src/uhitm.c

index cadf63eeba0aa2e2f1d00f2f4f047bec8c3a15e3..4a189882ac300a9923b6dc96ab19afeda60d9ad5 100644 (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 *));
index eda64e283cc6c3a18893d5122b84f8f94f4595e4..edde515659ed266f3826b33dd8e7c9c930e241aa 100644 (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.");
index ee4796d4bb095b27173a4fb0e4f6a31a4481eb6b..d3e3249a613fd341394eea53808ba1d71dd37f40 100644 (file)
--- 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);
index 02138dd693ac10adaf57f4e2f2bdab4cb4c34821..8299e9c384c6c75f67520a01c50e057de144fe50 100644 (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";
index 6718a042523dc29d776ec6d2db963f0779f9cc1e..c1fc58e8d7d2948cc412b134f5cfdf8120acc733 100644 (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)
index 45517c483b99af55f8ba1f56e0b1ad6b2687609f..9614311c07f0f405d0ea0242463252efd26a5376 100644 (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;
 {