aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/utils/loadstor.h4
-rw-r--r--src/utils/parsing.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/loadstor.h b/src/utils/loadstor.h
index 047e9c067..29e00592a 100644
--- a/src/utils/loadstor.h
+++ b/src/utils/loadstor.h
@@ -101,7 +101,7 @@ inline T load_be(const byte in[], size_t off)
{
in += off * sizeof(T);
T out = 0;
- for(size_t i = 0; i != sizeof(T); i++)
+ for(size_t i = 0; i != sizeof(T); ++i)
out = (out << 8) | in[i];
return out;
}
@@ -117,7 +117,7 @@ inline T load_le(const byte in[], size_t off)
{
in += off * sizeof(T);
T out = 0;
- for(size_t i = 0; i != sizeof(T); i++)
+ for(size_t i = 0; i != sizeof(T); ++i)
out = (out << 8) | in[sizeof(T)-1-i];
return out;
}
diff --git a/src/utils/parsing.cpp b/src/utils/parsing.cpp
index f46e2687d..9ec00040c 100644
--- a/src/utils/parsing.cpp
+++ b/src/utils/parsing.cpp
@@ -258,7 +258,7 @@ u32bit string_to_ipv4(const std::string& str)
u32bit ip = 0;
- for(size_t i = 0; i != parts.size(); i++)
+ for(size_t i = 0; i != parts.size(); ++i)
{
u32bit octet = to_u32bit(parts[i]);
@@ -278,7 +278,7 @@ std::string ipv4_to_string(u32bit ip)
{
std::string str;
- for(size_t i = 0; i != sizeof(ip); i++)
+ for(size_t i = 0; i != sizeof(ip); ++i)
{
if(i)
str += ".";