From 664fee5c6ee4214f72c24bed4256cc7a4b207483 Mon Sep 17 00:00:00 2001 From: Cheer Xiao Date: Tue, 1 Jan 2013 01:12:47 +0800 Subject: [PATCH] Use new IO_INVALID as default value of io_data_t::io_mode --- io.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io.h b/io.h index f9e2c7f5f..d811f6ea2 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(),