From 9215c35975be745628e8188473154c7e476add55 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Tue, 4 Feb 2014 23:18:54 -0800 Subject: Wrap remaining FDs in a class --- src/io/read.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/io/read.hpp') diff --git a/src/io/read.hpp b/src/io/read.hpp index 8b910b6..14283c5 100644 --- a/src/io/read.hpp +++ b/src/io/read.hpp @@ -23,18 +23,19 @@ # include "../strings/fwd.hpp" +# include "fd.hpp" namespace io { class ReadFile { private: - int fd; + FD fd; unsigned short start, end; char buf[4096]; public: explicit - ReadFile(int fd); + ReadFile(FD fd); explicit ReadFile(ZString name); ReadFile(ReadFile&&) = delete; -- cgit v1.2.3-60-g2f50