sprinkle volatile

This commit is contained in:
christos 2006-10-15 23:57:21 +00:00
parent 640b35e022
commit 88e26c5a37
2 changed files with 10 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sem.c,v 1.24 2004/09/28 16:07:01 christos Exp $ */
/* $NetBSD: sem.c,v 1.25 2006/10/15 23:57:21 christos Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)sem.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: sem.c,v 1.24 2004/09/28 16:07:01 christos Exp $");
__RCSID("$NetBSD: sem.c,v 1.25 2006/10/15 23:57:21 christos Exp $");
#endif
#endif /* not lint */
@ -59,11 +59,12 @@ static void doio(struct command *t, int *, int *);
static void chkclob(char *);
void
execute(struct command *t, int wanttty, int *pipein, int *pipeout)
execute(struct command *t, int wtty, int *pipein, int *pipeout)
{
static sigset_t csigset, ocsigset;
static int nosigchld = 0, onosigchld = 0;
struct biltins *bifunc;
volatile int wanttty = wtty;
struct biltins * volatile bifunc;
int pv[2], pid;
sigset_t nsigset;
bool forked;

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.18 2006/06/11 16:15:20 christos Exp $ */
/* $NetBSD: main.c,v 1.19 2006/10/16 00:00:48 christos Exp $ */
/* main.c: This file contains the main control and user-interface routines
for the ed line editor. */
@ -39,7 +39,7 @@ __COPYRIGHT(
#if 0
static char *rcsid = "@(#)main.c,v 1.1 1994/02/01 00:34:42 alm Exp";
#else
__RCSID("$NetBSD: main.c,v 1.18 2006/06/11 16:15:20 christos Exp $");
__RCSID("$NetBSD: main.c,v 1.19 2006/10/16 00:00:48 christos Exp $");
#endif
#endif /* not lint */
@ -108,14 +108,12 @@ const char *usage = "usage: %s [-] [-sxE] [-p string] [name]\n";
/* ed: line editor */
int
main(int argc, char *argv[])
main(int ac, char *av[])
{
int c, n;
long status = 0;
#ifdef __GNUC__
(void) &argc;
(void) &argv;
#endif
volatile int argc = ac;
char ** volatile argv = av;
red = (n = strlen(argv[0])) > 2 && argv[0][n - 3] == 'r';
top: