volatile fixes from Anon Ymous
This commit is contained in:
parent
225dafea20
commit
019209fdbc
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: commands.c,v 1.66 2006/05/11 00:25:46 mrg Exp $ */
|
||||
/* $NetBSD: commands.c,v 1.67 2006/12/18 14:18:40 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1997 and 1998 WIDE Project.
|
||||
|
@ -63,7 +63,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)commands.c 8.4 (Berkeley) 5/30/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: commands.c,v 1.66 2006/05/11 00:25:46 mrg Exp $");
|
||||
__RCSID("$NetBSD: commands.c,v 1.67 2006/12/18 14:18:40 christos Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -1359,11 +1359,8 @@ suspend(int argc, char *argv[])
|
|||
int
|
||||
shell(int argc, char *argv[])
|
||||
{
|
||||
long oldrows, oldcols, newrows, newcols, err;
|
||||
|
||||
#ifdef __GNUC__
|
||||
(void) &err; /* XXX avoid GCC warning */
|
||||
#endif
|
||||
long oldrows, oldcols, newrows, newcols;
|
||||
long volatile err; /* Avoid vfork clobbering */
|
||||
|
||||
setcommandmode();
|
||||
|
||||
|
@ -2201,9 +2198,6 @@ tn(int argc, char *argv[])
|
|||
#endif
|
||||
char *cmd, *hostp = 0, *portp = 0;
|
||||
const char *user = 0;
|
||||
#ifdef __GNUC__ /* Avoid vfork clobbering */
|
||||
(void) &user;
|
||||
#endif
|
||||
|
||||
if (connected) {
|
||||
printf("?Already connected to %s\n", hostname);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: main.c,v 1.25 2006/03/20 04:03:23 christos Exp $ */
|
||||
/* $NetBSD: main.c,v 1.26 2006/12/18 14:18:40 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1990, 1993
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1990, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 5/30/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: main.c,v 1.25 2006/03/20 04:03:23 christos Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.26 2006/12/18 14:18:40 christos Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -325,11 +325,10 @@ main(int argc, char *argv[])
|
|||
argv += optind;
|
||||
|
||||
if (argc) {
|
||||
char *args[7], **argp = args;
|
||||
#ifdef __GNUC__
|
||||
(void) &argp; /* avoid longjmp clobbering */
|
||||
#endif
|
||||
char *args[7];
|
||||
char ** volatile argp; /* avoid longjmp clobbering */
|
||||
|
||||
argp = args;
|
||||
if (argc > 2)
|
||||
usage();
|
||||
*argp++ = prompt;
|
||||
|
|
Loading…
Reference in New Issue