]> git.stg.codes - stg.git/blobdiff - projects/stargazer/traffcounter_impl.cpp
Add vecotr reserve to the default constructor of SETTINGS_IMPL
[stg.git] / projects / stargazer / traffcounter_impl.cpp
index f410b1090b3413e8a039a5a091773fa1ac6105bd..e056a7a66879822e1cbc756699ec0a8f02f9684f 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 /* inet_aton */
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
@@ -938,7 +939,7 @@ return;
 //-----------------------------------------------------------------------------
 void TRAFFCOUNTER_IMPL::SetMonitorDir(const std::string & monitorDir)
 {
-TRAFFCOUNTER::monitorDir = monitorDir;
+TRAFFCOUNTER_IMPL::monitorDir = monitorDir;
 monitoring = (monitorDir != "");
 }
 //-----------------------------------------------------------------------------