]> git.stg.codes - stg.git/blobdiff - projects/stargazer/traffcounter_impl.cpp
Extra semicolon and return in void functions removed
[stg.git] / projects / stargazer / traffcounter_impl.cpp
index da64a0b8bb2ceb68ee7c26e63f5eb52989eeee28..31063523291d075989381e769cf301391ea3b900 100644 (file)
@@ -625,9 +625,7 @@ if (!foundU)
 
 if (!foundD)
     *dirD = DIR_NUM;
-
-return;
-};
+}
 //-----------------------------------------------------------------------------
 void TRAFFCOUNTER_IMPL::SetRulesFile(const std::string & fn)
 {
@@ -901,8 +899,7 @@ switch (rule.proto)
         printf("ALL     ");
         break;
     }
-printf("dir=%d \n", rule.dir);
-return;
+printf("dir=%d \n", static_cast<unsigned>(rule.dir));
 }
 //-----------------------------------------------------------------------------
 void TRAFFCOUNTER_IMPL::SetMonitorDir(const std::string & monitorDir)