X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FReadHelper.hh;h=976c4ae352bd78e9070e2ad4f62a118846092957;hb=635a822c0f03d4a9107672f2d5becb4f3a195a83;hp=0b43431ca406edf8017f8a48d4613899ced309b9;hpb=03516e8371a90f908ce54dedb3c874eec7dd08ff;p=senf.git diff --git a/Scheduler/ReadHelper.hh b/Scheduler/ReadHelper.hh index 0b43431..976c4ae 100644 --- a/Scheduler/ReadHelper.hh +++ b/Scheduler/ReadHelper.hh @@ -113,7 +113,7 @@ namespace senf { /////////////////////////////////////////////////////////////////////////// Handle handle() const; ///< Access the handle object - unsigned maxSize() const; ///< Return maximum number of bytes to be read + std::string::size_type maxSize() const; ///< Return maximum number of bytes to be read std::string const & data() const; ///< return data read std::string const & tail() const; ///< return data read but not matched by the predicate @@ -129,7 +129,8 @@ namespace senf { private: struct InternalPredicate; - ReadHelper(Handle handle, unsigned maxSize, InternalPredicate * predicate, Callback cb); + ReadHelper(Handle handle, std::string::size_teyp maxSize, + InternalPredicate * predicate, Callback cb); static void dispatchProcess(ptr helper, Handle handle, int event); void process(Handle handle, int event);