]> granicus.if.org Git - nethack/commitdiff
Warning cleanup.
authorSean Hunt <scshunt@csclub.uwaterloo.ca>
Sun, 24 May 2015 15:08:34 +0000 (00:08 +0900)
committernhmall <mjnh@persona.ca>
Sun, 24 May 2015 15:12:58 +0000 (11:12 -0400)
include/decl.h
src/botl.c
src/monmove.c
src/options.c

index fa2e34f2139457d62e59fd4bb5e4b3a012352771..3de35ce873dd87314c201fa0478a00870086bc31 100644 (file)
@@ -390,7 +390,7 @@ E NEARDATA struct savefile_info sfcap, sfrestinfo, sfsaveinfo;
 
 struct autopickup_exception {
        struct nhregex *regex;
-    const char *pattern;
+    char *pattern;
        boolean grab;
        struct autopickup_exception *next;
 };
index 0b6415739fb62535b04e31296b19aac60af13bb3..edded8c9b83ea72660f4ac162f72cb39e906ed6b 100644 (file)
@@ -199,9 +199,9 @@ bot1()
                 mbot[k] += 'A' - 'a';
             k++;
         }
-        Sprintf(nb = eos(nb), mbot);
+        Strcpy(nb = eos(nb), mbot);
     } else
-        Sprintf(nb = eos(nb), rank());
+        Strcpy(nb = eos(nb), rank());
 
     Sprintf(nb = eos(nb), "  ");
     i = mrank_sz + 15;
index fefb03fb7fc326f79ba353ec867e469c0374ffe7..afe84d569588251b7ccd659f32dbb3df03de33d7 100644 (file)
@@ -59,7 +59,7 @@ const char *shout;
         pline("%s yells:", Amonnam(mon));
     else
         You_hear("someone yell:");
-    verbalize(shout);
+    verbalize1(shout);
 }
 
 STATIC_OVL void
index f969e07cb83693322fb9faa7f43b44fc39d46118..dfd30c6eaa31a8be21abe05250ace7b80f0fcc1a 100644 (file)
@@ -4554,7 +4554,7 @@ const char *mapping;
             free(ape);
             return 0;
         }
-        ape->pattern = alloc(strlen(text2) + 1);
+        ape->pattern = (char *)alloc(strlen(text2) + 1);
         strcpy(ape->pattern, text2);
         ape->grab = grab;
         ape->next = *apehead;