aboutsummaryrefslogtreecommitdiff
path: root/pan
diff options
context:
space:
mode:
authorGarrett Cooper <yanegomi@gmail.com>2011-02-23 00:11:13 -0800
committerGarrett Cooper <yanegomi@gmail.com>2011-02-23 00:11:13 -0800
commit80a305eac8dd2327dd838274dcf8891bcdf554f9 (patch)
tree138aa8570f846ec083b655061867060e2ff0aa57 /pan
parent65a42ec63f9e28fb3ff3edfaa5b045e3410f4af3 (diff)
Fix some warnings.
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Diffstat (limited to 'pan')
-rw-r--r--pan/ltp-pan.c3
-rw-r--r--pan/zoolib.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/pan/ltp-pan.c b/pan/ltp-pan.c
index bfe2dadd7..1b1456a9b 100644
--- a/pan/ltp-pan.c
+++ b/pan/ltp-pan.c
@@ -60,6 +60,7 @@
#include <errno.h>
#include <err.h>
#include <limits.h>
+#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
@@ -805,6 +806,7 @@ check_pids(struct tag_pgrp *running, int *num_active, int keep_active,
static pid_t
run_child(struct coll_entry *colle, struct tag_pgrp *active, int quiet_mode)
{
+ ssize_t errlen;
int cpid;
int c_stdout = -1; /* child's stdout, stderr */
int capturing = 0; /* output is going to a file instead of stdout */
@@ -812,7 +814,6 @@ run_child(struct coll_entry *colle, struct tag_pgrp *active, int quiet_mode)
static long cmdno = 0;
int errpipe[2]; /* way to communicate to parent that the tag */
char errbuf[1024]; /* didn't actually start */
- int errlen;
/* Try to open the file that will be stdout for the test */
if (test_out_dir) {
diff --git a/pan/zoolib.c b/pan/zoolib.c
index ed4efc55b..156b24bd9 100644
--- a/pan/zoolib.c
+++ b/pan/zoolib.c
@@ -49,6 +49,7 @@
*
*/
+#include <signal.h>
#include <stdlib.h> /* for getenv */
#include <string.h>
#include "zoolib.h"
@@ -471,4 +472,4 @@ main(int argc, char *argv[])
-#endif \ No newline at end of file
+#endif