protect more variables against gcc longjmp() clobbering

This commit is contained in:
mikel 1997-07-09 05:25:45 +00:00
parent f50e8d7409
commit 70875d29b0
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: collect.c,v 1.8 1997/07/07 22:57:52 phil Exp $ */
/* $NetBSD: collect.c,v 1.9 1997/07/09 05:25:45 mikel Exp $ */
/*
* Copyright (c) 1980, 1993
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)collect.c 8.2 (Berkeley) 4/19/94";
#else
static char rcsid[] = "$NetBSD: collect.c,v 1.8 1997/07/07 22:57:52 phil Exp $";
static char rcsid[] = "$NetBSD: collect.c,v 1.9 1997/07/09 05:25:45 mikel Exp $";
#endif
#endif /* not lint */
@ -93,6 +93,7 @@ collect(hp, printheaders)
(void) &escape;
(void) &eofcount;
(void) &getsub;
(void) &longline;
#endif
collf = NULL;

View File

@ -1,4 +1,4 @@
/* $NetBSD: tty.c,v 1.6 1996/12/28 07:11:08 tls Exp $ */
/* $NetBSD: tty.c,v 1.7 1997/07/09 05:25:46 mikel Exp $ */
/*
* Copyright (c) 1980, 1993
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)tty.c 8.2 (Berkeley) 6/6/93";
#else
static char rcsid[] = "$NetBSD: tty.c,v 1.6 1996/12/28 07:11:08 tls Exp $";
static char rcsid[] = "$NetBSD: tty.c,v 1.7 1997/07/09 05:25:46 mikel Exp $";
#endif
#endif /* not lint */
@ -81,6 +81,9 @@ grabh(hp, gflags)
int errs;
#ifdef __GNUC__
/* Avoid longjmp clobbering */
#ifdef TIOCSTI
(void) &extproc;
#endif
(void) &saveint;
#endif