From a54454ebd5b2228c01246c5f34b18112e513a9f6 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Sun, 4 Aug 1996 23:09:01 +0000 Subject: [PATCH] Fix return from some functions git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@631 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/telnet/telnet/commands.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/appl/telnet/telnet/commands.c b/appl/telnet/telnet/commands.c index 1d9fc2fe9..f4bc0e623 100644 --- a/appl/telnet/telnet/commands.c +++ b/appl/telnet/telnet/commands.c @@ -1417,10 +1417,9 @@ static int bye(int argc, char **argv) /* reset options */ tninit(); } - if ((argc != 2) || (strcmp(argv[1], "fromquit") != 0)) { + if ((argc != 2) || (strcmp(argv[1], "fromquit") != 0)) longjmp(toplevel, 1); - /* NOTREACHED */ - } + return 0; /* NOTREACHED */ } /*VARARGS*/ @@ -1428,7 +1427,7 @@ int quit(void) { (void) call(bye, "bye", "fromquit", 0); Exit(0); - /*NOTREACHED*/ + return 0; /*NOTREACHED*/ } /*VARARGS*/