Split out io_buffer_t, make input_redirect in exec() a raw pointer

This commit is contained in:
Cheer Xiao
2013-01-15 16:44:31 +08:00
parent 4b6bd7cae5
commit a20e0b9e2e
5 changed files with 75 additions and 62 deletions

View File

@@ -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);
}
}