]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/rscript/nrmap_parser.cpp
Pass config file via const reference in sgauth/sgathstress settings
[stg.git] / projects / stargazer / plugins / other / rscript / nrmap_parser.cpp
index 38caa1cfe2febd5f7422eee208c1d25a53899b7c..254a3da683b2dfd279a55262b9e49facb543fd00 100644 (file)
@@ -31,8 +31,8 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>
-#include "common.h"
 
 
+#include "stg/common.h"
 #include "nrmap_parser.h"
 
 NRMapParser::NRMapParser()
 #include "nrmap_parser.h"
 
 NRMapParser::NRMapParser()
@@ -96,8 +96,8 @@ if (pos == std::string::npos)
 
 std::string subnet(line.substr(0, pos)); // xxx.xxx.xxx.xxx/yy
 
 
 std::string subnet(line.substr(0, pos)); // xxx.xxx.xxx.xxx/yy
 
-uint32_t ip;
-uint32_t mask;
+uint32_t ip = 0;
+uint32_t mask = 0;
 
 if (ParseNet(subnet, ip, mask))
     {
 
 if (ParseNet(subnet, ip, mask))
     {