From 146a3530859ebade88d032814bdf049dcff61bfb Mon Sep 17 00:00:00 2001 From: Cheer Xiao Date: Tue, 1 Jan 2013 01:11:46 +0800 Subject: [PATCH] rename enum io_mode -> io_mode_t; make io_data_t::io_mode that type --- io.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/io.h b/io.h index faea6a0ce..f9e2c7f5f 100644 --- a/io.h +++ b/io.h @@ -8,7 +8,7 @@ using std::tr1::shared_ptr; /** Describes what type of IO operation an io_data_t represents */ -enum io_mode +enum io_mode_t { IO_FILE, IO_PIPE, IO_FD, IO_BUFFER, IO_CLOSE }; @@ -26,7 +26,7 @@ private: public: /** Type of redirect */ - int io_mode; + io_mode_t io_mode; /** FD to redirect */ int fd; @@ -99,7 +99,7 @@ public: io_data_t() : out_buffer(), - io_mode(0), + io_mode(IO_FILE), fd(0), param1(), param2(),