summaryrefslogtreecommitdiff
path: root/usr.bin/tip
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-10-22 16:48:34 +0000
committerchristos <christos@NetBSD.org>2006-10-22 16:48:34 +0000
commit97e81e479cc7b68872a8bc20f284e7950f3cb409 (patch)
tree1ef5e47358d99ffa875a1608f7021a977fe64225 /usr.bin/tip
parentc3c65c3c0c5530929e0ebe7595a1135d6e9c14d1 (diff)
sprinkle volatile.
Diffstat (limited to 'usr.bin/tip')
-rw-r--r--usr.bin/tip/aculib/hayes.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.bin/tip/aculib/hayes.c b/usr.bin/tip/aculib/hayes.c
index 8debbe9a6d3..86e1d1579c5 100644
--- a/usr.bin/tip/aculib/hayes.c
+++ b/usr.bin/tip/aculib/hayes.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hayes.c,v 1.13 2006/04/03 04:53:59 christos Exp $ */
+/* $NetBSD: hayes.c,v 1.14 2006/10/22 16:48:34 christos Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)hayes.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: hayes.c,v 1.13 2006/04/03 04:53:59 christos Exp $");
+__RCSID("$NetBSD: hayes.c,v 1.14 2006/10/22 16:48:34 christos Exp $");
#endif /* not lint */
/*
@@ -155,11 +155,8 @@ gobble(const char *match)
{
char c;
sig_t f;
- int i, status = 0;
-
-#if __GNUC__ /* XXX pacify gcc */
- (void)&status;
-#endif
+ int i;
+ volatile int status = 0;
f = signal(SIGALRM, sigALRM);
timeout = 0;