aboutsummaryrefslogtreecommitdiffhomepage
path: root/proc.cpp
diff options
context:
space:
mode:
authorGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-15 16:44:31 +0800
committerGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-17 15:55:05 +0800
commita20e0b9e2eb25b16e8416ac7758c2da0216dc6d8 (patch)
tree44a338bf17cc9b55ea454896419a8cd732f22753 /proc.cpp
parent4b6bd7cae5e731f8e2bafeabca59e5aaabd6749d (diff)
Split out io_buffer_t, make input_redirect in exec() a raw pointer
Diffstat (limited to 'proc.cpp')
-rw-r--r--proc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc.cpp b/proc.cpp
index 1b37f149..2e6e32ee 100644
--- a/proc.cpp
+++ b/proc.cpp
@@ -902,7 +902,7 @@ static int select_try(job_t *j)
*/
static void read_try(job_t *j)
{
- io_data_t *buff=NULL;
+ io_buffer_t *buff=NULL;
/*
Find the last buffer, which is the one we want to read from
@@ -912,7 +912,7 @@ static void read_try(job_t *j)
io_data_t *d = j->io.at(idx).get();
if (d->io_mode == IO_BUFFER)
{
- buff=d;
+ buff = static_cast<io_buffer_t *>(d);
}
}