aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2009-04-08 18:31:54 +0000
committerGisle Vanem <gvanem@broadpark.no>2009-04-08 18:31:54 +0000
commit6e2f0833ad00a4421d60be1933bbda617a2139a0 (patch)
tree26c637dc74e7f4e11eb8600d6adcb3267fff3948 /tests
parent25f626cc52561547034bc070b92b81606b9ba473 (diff)
#ifdef around variables to squelsh warnings.
Diffstat (limited to 'tests')
-rw-r--r--tests/server/sockfilt.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c
index c8c59b3d1..7c96ac376 100644
--- a/tests/server/sockfilt.c
+++ b/tests/server/sockfilt.c
@@ -146,11 +146,25 @@ enum sockmode {
typedef RETSIGTYPE (*SIGHANDLER_T)(int);
+#ifdef SIGHUP
static SIGHANDLER_T old_sighup_handler = SIG_ERR;
+#endif
+
+#ifdef SIGPIPE
static SIGHANDLER_T old_sigpipe_handler = SIG_ERR;
+#endif
+
+#ifdef SIGALRM
static SIGHANDLER_T old_sigalrm_handler = SIG_ERR;
+#endif
+
+#ifdef SIGINT
static SIGHANDLER_T old_sigint_handler = SIG_ERR;
+#endif
+
+#ifdef SIGTERM
static SIGHANDLER_T old_sigterm_handler = SIG_ERR;
+#endif
/* var which if set indicates that the program should finish execution */