summaryrefslogtreecommitdiff
path: root/usr.bin/mail/cmd1.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/cmd1.c
parent23411e0b6e4b0e864740a9a9332204eda45df3cd (diff)
Remove evil #ifdef __GNUC__ garbage to avoid longjmp clobbering and
use volatile instead.
Diffstat (limited to 'usr.bin/mail/cmd1.c')
-rw-r--r--usr.bin/mail/cmd1.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/usr.bin/mail/cmd1.c b/usr.bin/mail/cmd1.c
index 66e28520934..647d1891fa4 100644
--- a/usr.bin/mail/cmd1.c
+++ b/usr.bin/mail/cmd1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd1.c,v 1.17 2001/01/16 05:36:08 millert Exp $ */
+/* $OpenBSD: cmd1.c,v 1.18 2001/06/23 23:04:21 millert Exp $ */
/* $NetBSD: cmd1.c,v 1.9 1997/07/09 05:29:48 mikel Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)cmd1.c 8.2 (Berkeley) 4/20/95";
#else
-static char rcsid[] = "$OpenBSD: cmd1.c,v 1.17 2001/01/16 05:36:08 millert Exp $";
+static char rcsid[] = "$OpenBSD: cmd1.c,v 1.18 2001/06/23 23:04:21 millert Exp $";
#endif
#endif /* not lint */
@@ -344,14 +344,8 @@ type1(msgvec, cmd, doign, page)
{
int nlines, *ip;
struct message *mp;
- char *cp;
- FILE *obuf;
-
-#if __GNUC__
- /* Avoid siglongjmp clobbering */
- (void)&cp;
- (void)&obuf;
-#endif
+ char * volatile cp;
+ FILE * volatile obuf;
obuf = stdout;
if (sigsetjmp(pipestop, 1))