summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-02-05 22:32:57 +0000
committerjoerg <joerg@pkgsrc.org>2009-02-05 22:32:57 +0000
commit045bae360d44ffcf250a721fa48c62c06f56c663 (patch)
treecc1931fc90f6231474a86866eb99697b9cc4cc58 /net
parent46d5b06934f036ec98e58444e408fdbe1fe37831 (diff)
downloadpkgsrc-045bae360d44ffcf250a721fa48c62c06f56c663.tar.gz
Mark variables modified from signal handlers as volatile.
Diffstat (limited to 'net')
-rw-r--r--net/fetch/files/fetch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/fetch/files/fetch.c b/net/fetch/files/fetch.c
index e2ea957eada..0da7e15f82a 100644
--- a/net/fetch/files/fetch.c
+++ b/net/fetch/files/fetch.c
@@ -108,9 +108,9 @@ pid_t pgrp; /* our process group */
long w_secs; /* -w: retry delay */
int family = PF_UNSPEC; /* -[46]: address family to use */
-int sigalrm; /* SIGALRM received */
-int siginfo; /* SIGINFO received */
-int sigint; /* SIGINT received */
+volatile int sigalrm; /* SIGALRM received */
+volatile int siginfo; /* SIGINFO received */
+volatile int sigint; /* SIGINT received */
long ftp_timeout; /* default timeout for FTP transfers */
long http_timeout; /* default timeout for HTTP transfers */