This commit is contained in:
jl777
2019-02-02 04:39:26 -11:00
parent 046de18981
commit 46b235b2cc
3 changed files with 5 additions and 5 deletions

View File

@@ -355,9 +355,9 @@ over:
when ']': current(rs,cur_armor, "wearing", NULL);
when '=':
current(rs,cur_ring[LEFT], "wearing",
terse ? "(L)" : "on left hand");
terse ? (char *)"(L)" : (char *)"on left hand");
current(rs,cur_ring[RIGHT], "wearing",
terse ? "(R)" : "on right hand");
terse ? (char *)"(R)" : (char *)"on right hand");
when '@':
stat_msg = TRUE;
status(rs);
@@ -784,7 +784,7 @@ norm:
{
if (*guess != NULL)
free(*guess);
*guess = malloc((unsigned int) strlen(prbuf) + 1);
*guess = (char *)malloc((unsigned int) strlen(prbuf) + 1);
strcpy(*guess, prbuf);
}
}

View File

@@ -353,7 +353,7 @@ set_mname(THING *tp)
static char tbuf[MAXSTR] = { 't', 'h', 'e', ' ' };
if (!see_monst(tp) && !on(player, SEEMONST))
return (terse ? "it" : "something");
return (terse ? (char *)"it" : (char *)"something");
else if (on(player, ISHALU))
{
move(tp->t_pos.y, tp->t_pos.x);

View File

@@ -100,7 +100,7 @@ new_item(void)
THING *item;
#ifdef MASTER
if ((item = calloc(1, sizeof *item)) == NULL)
if ((item = (THING *)calloc(1, sizeof *item)) == NULL)
msg(rs,"ran out of memory after %d items", total);
else
total++;