summaryrefslogtreecommitdiff
path: root/usr.bin/mail/lex.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-06-23 23:04:24 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-06-23 23:04:24 +0000
commit226782657bcf8cb74d584851cc8521fe11280537 (patch)
tree5be486dcc37919ef77257d30c7beb7a0ea2773c0 /usr.bin/mail/lex.c
parent23411e0b6e4b0e864740a9a9332204eda45df3cd (diff)
Remove evil #ifdef __GNUC__ garbage to avoid longjmp clobbering and
use volatile instead.
Diffstat (limited to 'usr.bin/mail/lex.c')
-rw-r--r--usr.bin/mail/lex.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.bin/mail/lex.c b/usr.bin/mail/lex.c
index 148f618d8b4..debfeda5d22 100644
--- a/usr.bin/mail/lex.c
+++ b/usr.bin/mail/lex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lex.c,v 1.22 2001/01/16 05:36:08 millert Exp $ */
+/* $OpenBSD: lex.c,v 1.23 2001/06/23 23:04:23 millert Exp $ */
/* $NetBSD: lex.c,v 1.10 1997/05/17 19:55:13 pk Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)lex.c 8.2 (Berkeley) 4/20/95";
#else
-static char rcsid[] = "$OpenBSD: lex.c,v 1.22 2001/01/16 05:36:08 millert Exp $";
+static char rcsid[] = "$OpenBSD: lex.c,v 1.23 2001/06/23 23:04:23 millert Exp $";
#endif
#endif /* not lint */
@@ -214,12 +214,9 @@ int reset_on_stop; /* do a reset() if stopped */
void
commands()
{
- int n, eofloop = 0;
+ int n;
+ volatile int eofloop = 0;
char linebuf[LINESIZE];
-#if __GNUC__
- /* Avoid siglongjmp clobbering */
- (void)&eofloop;
-#endif
if (!sourcing) {
if (signal(SIGINT, SIG_IGN) != SIG_IGN)