]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/netunit.cpp
Moved parsers into a separate directory.
[stg.git] / stglibs / srvconf.lib / netunit.cpp
index 68d64678e5b7d33528475cda68dd3afc89ef72ad..f70cf27da5b2aedce6d06e067619aa5cf5faa1fb 100644 (file)
@@ -26,7 +26,8 @@
 
 //---------------------------------------------------------------------------
 
-#include "stg/netunit.h"
+#include "netunit.h"
+
 #include "stg/servconf_types.h"
 #include "stg/common.h"
 #include "stg/blowfish.h"
@@ -43,6 +44,8 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 
+using namespace STG;
+
 namespace
 {
 
@@ -435,7 +438,7 @@ while (true)
 
     bool final = false;
     size_t pos = 0;
-    for (; pos < ENC_MSG_LEN && buffer[pos] != 0; pos++);
+    for (; pos < ENC_MSG_LEN && buffer[pos] != 0; pos++) ;
     if (pos < ENC_MSG_LEN && buffer[pos] == 0)
         final = true;