(gift): Default case can't happen. Make that explicit for safety and
to silence compiler.
This commit is contained in:
parent
00ba173baa
commit
a0e7a04f89
1 changed files with 3 additions and 0 deletions
|
@ -339,6 +339,9 @@ gift(int givee, int giver, s_char *ptr, int type, s_char *mesg)
|
||||||
case EF_LAND:
|
case EF_LAND:
|
||||||
p = prland((struct lndstr *)ptr);
|
p = prland((struct lndstr *)ptr);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
CANT_HAPPEN("bad TYPE");
|
||||||
|
p = "a red herring";
|
||||||
}
|
}
|
||||||
|
|
||||||
sprintf(line, "%s %s %s\n", cname(giver), p, mesg);
|
sprintf(line, "%s %s %s\n", cname(giver), p, mesg);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue