Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/hack - done() can return in wizard mode. don't NOTREA...



details:   https://anonhg.NetBSD.org/src/rev/756b879895a2
branches:  trunk
changeset: 996521:756b879895a2
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Feb 04 03:33:15 2019 +0000

description:
- done() can return in wizard mode.  don't NOTREACHED'd it
  but break instead.

diffstat:

 games/hack/hack.eat.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c9c198281974 -r 756b879895a2 games/hack/hack.eat.c
--- a/games/hack/hack.eat.c     Mon Feb 04 03:32:27 2019 +0000
+++ b/games/hack/hack.eat.c     Mon Feb 04 03:33:15 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hack.eat.c,v 1.12 2011/08/07 06:03:45 dholland Exp $   */
+/*     $NetBSD: hack.eat.c,v 1.13 2019/02/04 03:33:15 mrg Exp $        */
 
 /*
  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: hack.eat.c,v 1.12 2011/08/07 06:03:45 dholland Exp $");
+__RCSID("$NetBSD: hack.eat.c,v 1.13 2019/02/04 03:33:15 mrg Exp $");
 #endif                         /* not lint */
 
 #include "hack.h"
@@ -539,7 +539,7 @@
                pline("You turn to stone.");
                killer = "dead cockatrice";
                done("died");
-               /* NOTREACHED */
+               break;
        case 'a':
                if (Stoned) {
                        pline("What a pity - you just destroyed a future piece of art!");



Home | Main Index | Thread Index | Old Index