aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.h
diff options
context:
space:
mode:
authorGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-01 01:12:47 +0800
committerGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-17 14:54:18 +0800
commit664fee5c6ee4214f72c24bed4256cc7a4b207483 (patch)
tree72b6e606acc8bc03b7d524c840b333cf9de3afe7 /io.h
parent146a3530859ebade88d032814bdf049dcff61bfb (diff)
Use new IO_INVALID as default value of io_data_t::io_mode
Diffstat (limited to 'io.h')
-rw-r--r--io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/io.h b/io.h
index f9e2c7f5..d811f6ea 100644
--- a/io.h
+++ b/io.h
@@ -10,7 +10,7 @@ using std::tr1::shared_ptr;
*/
enum io_mode_t
{
- IO_FILE, IO_PIPE, IO_FD, IO_BUFFER, IO_CLOSE
+ IO_INVALID, IO_FILE, IO_PIPE, IO_FD, IO_BUFFER, IO_CLOSE
};
/** Represents an FD redirection */
@@ -99,7 +99,7 @@ public:
io_data_t() :
out_buffer(),
- io_mode(IO_FILE),
+ io_mode(IO_INVALID),
fd(0),
param1(),
param2(),