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/37f4c9f59a0a
branches:  trunk
changeset: 448486:37f4c9f59a0a
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 71c477007597 -r 37f4c9f59a0a 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