pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/fetch/files Mark variables modified from signal ha...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/12a3463eaa15
branches:  trunk
changeset: 553998:12a3463eaa15
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Feb 05 22:32:57 2009 +0000

description:
Mark variables modified from signal handlers as volatile.

diffstat:

 net/fetch/files/fetch.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (16 lines):

diff -r c8ff47b61a88 -r 12a3463eaa15 net/fetch/files/fetch.c
--- a/net/fetch/files/fetch.c   Thu Feb 05 22:23:55 2009 +0000
+++ b/net/fetch/files/fetch.c   Thu Feb 05 22:32:57 2009 +0000
@@ -108,9 +108,9 @@
 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 */



Home | Main Index | Thread Index | Old Index