summaryrefslogtreecommitdiffstats
path: root/call/call.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-06-10 18:37:02 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-06-10 19:28:17 +0200
commit71c88f6a1d37e51f085fc8eeb71b0033602029a3 (patch)
treeef6e5b4379b7ce0dbef56833dff3a01270fe9519 /call/call.c
parent03f6d2aaec860d89e3d6280fa31dd03ed6a8f435 (diff)
call: Harden against compiler overoptimization.
A compiler won't know that the interrupted variable can be changed behind its back in a signal handler so it might do clever overoptimizations. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'call/call.c')
-rw-r--r--call/call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/call/call.c b/call/call.c
index f7a7770..2f606bd 100644
--- a/call/call.c
+++ b/call/call.c
@@ -79,7 +79,7 @@ static char *mycall;
static int stdin_is_tty = 1;
-int interrupted = FALSE;
+volatile int interrupted = FALSE;
int paclen;
int fd;