Use new IO_INVALID as default value of io_data_t::io_mode

This commit is contained in:
Cheer Xiao 2013-01-01 01:12:47 +08:00
parent 146a353085
commit 664fee5c6e

4
io.h
View file

@ -10,7 +10,7 @@ using std::tr1::shared_ptr;
*/ */
enum io_mode_t 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 */ /** Represents an FD redirection */
@ -99,7 +99,7 @@ public:
io_data_t() : io_data_t() :
out_buffer(), out_buffer(),
io_mode(IO_FILE), io_mode(IO_INVALID),
fd(0), fd(0),
param1(), param1(),
param2(), param2(),