]> 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 4c3cc92ed8bf7626b1f25e40b46e2d1c161317ab..f70cf27da5b2aedce6d06e067619aa5cf5faa1fb 100644 (file)
@@ -26,7 +26,9 @@
 
 //---------------------------------------------------------------------------
 
-#include "stg/netunit.h"
+#include "netunit.h"
+
+#include "stg/servconf_types.h"
 #include "stg/common.h"
 #include "stg/blowfish.h"
 
 #include <arpa/inet.h>
 #include <unistd.h>
 
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+
+using namespace STG;
+
 namespace
 {
 
@@ -430,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;