From 2f4fc005937e75d931eb6ef87a3fe16364d45113 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 26 Jun 2014 21:59:27 -0700 Subject: Stick everything in a namespace --- src/net/packets.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/net/packets.cpp') diff --git a/src/net/packets.cpp b/src/net/packets.cpp index fbec8c4..3cba856 100644 --- a/src/net/packets.cpp +++ b/src/net/packets.cpp @@ -23,6 +23,9 @@ #include "../poison.hpp" + +namespace tmwa +{ size_t packet_avail(Session *s) { return s->rdata_size - s->rdata_pos; @@ -100,3 +103,4 @@ void packet_dump(io::WriteFile& logfp, Session *s) } FPRINTF(logfp, "\n"_fmt); } +} // namespace tmwa -- cgit v1.2.3-60-g2f50