aboutsummaryrefslogtreecommitdiffstats
path: root/util/ip.lua
diff options
context:
space:
mode:
authorAnton Shestakov <av6@dwimlabs.net>2016-07-09 10:27:57 +0800
committerAnton Shestakov <av6@dwimlabs.net>2016-07-09 10:27:57 +0800
commit4daf38eaeb1c58e32048432f03af76daca80574a (patch)
tree418ec01a4e2621ec984613a34c99c5b051184a19 /util/ip.lua
parentc227b1834642429fe017504d3937974c4688c73a (diff)
downloadprosody-4daf38eaeb1c58e32048432f03af76daca80574a.tar.gz
prosody-4daf38eaeb1c58e32048432f03af76daca80574a.zip
util.ip: remove unused one-letter loop variables [luacheck]
Diffstat (limited to 'util/ip.lua')
-rw-r--r--util/ip.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/ip.lua b/util/ip.lua
index ec3b4d7e..1f32d1b5 100644
--- a/util/ip.lua
+++ b/util/ip.lua
@@ -51,11 +51,11 @@ local function toBits(ip)
if not ip:match(":$") then fields[#fields] = nil; end
for i, field in ipairs(fields) do
if field:len() == 0 and i ~= 1 and i ~= #fields then
- for i = 1, 16 * (9 - #fields) do
+ for _ = 1, 16 * (9 - #fields) do
result = result .. "0";
end
else
- for i = 1, 4 - field:len() do
+ for _ = 1, 4 - field:len() do
result = result .. "0000";
end
for i = 1, field:len() do