From b6f32e7eff41bf12af48e2482750dcd6bcb47fd5 Mon Sep 17 00:00:00 2001 From: Sean Hunt Date: Mon, 25 May 2015 00:08:34 +0900 Subject: [PATCH] Warning cleanup. --- include/decl.h | 2 +- src/botl.c | 4 ++-- src/monmove.c | 2 +- src/options.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/decl.h b/include/decl.h index fa2e34f21..3de35ce87 100644 --- a/include/decl.h +++ b/include/decl.h @@ -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; }; diff --git a/src/botl.c b/src/botl.c index 0b6415739..edded8c9b 100644 --- a/src/botl.c +++ b/src/botl.c @@ -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; diff --git a/src/monmove.c b/src/monmove.c index fefb03fb7..afe84d569 100644 --- a/src/monmove.c +++ b/src/monmove.c @@ -59,7 +59,7 @@ const char *shout; pline("%s yells:", Amonnam(mon)); else You_hear("someone yell:"); - verbalize(shout); + verbalize1(shout); } STATIC_OVL void diff --git a/src/options.c b/src/options.c index f969e07cb..dfd30c6ea 100644 --- a/src/options.c +++ b/src/options.c @@ -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; -- 2.50.1