diff --git a/TNC/HdlcFrame.hpp b/TNC/HdlcFrame.hpp index 09fc2c7..32a1f26 100644 --- a/TNC/HdlcFrame.hpp +++ b/TNC/HdlcFrame.hpp @@ -139,7 +139,7 @@ public: } }; -template +template class FramePool { public: @@ -147,7 +147,7 @@ public: typedef list> FrameList; private: - static const uint16_t FRAME_COUNT = 16; + static const uint16_t FRAME_COUNT = SIZE; frame_type frames_[FRAME_COUNT]; FrameList free_list_; @@ -188,7 +188,7 @@ typedef buffer::Pool<48> FrameSegmentPool; // 12K buffer of frames; extern FrameSegmentPool frameSegmentPool; typedef Frame IoFrame; -typedef FramePool IoFramePool; +typedef FramePool IoFramePool; IoFramePool& ioFramePool(void);