aboutsummaryrefslogtreecommitdiffstats
path: root/util/ip.lua
diff options
context:
space:
mode:
authorAnton Shestakov <av6@dwimlabs.net>2016-07-09 17:33:38 +0800
committerAnton Shestakov <av6@dwimlabs.net>2016-07-09 17:33:38 +0800
commit1e78e0f2365dcf25ff5fb863afc783ebc158ad9b (patch)
tree954e43290d2494d09f800ff592f62051ef78c0c2 /util/ip.lua
parentb1cda685448c51b911ea5f6b9c7714088dd38ef0 (diff)
downloadprosody-1e78e0f2365dcf25ff5fb863afc783ebc158ad9b.tar.gz
prosody-1e78e0f2365dcf25ff5fb863afc783ebc158ad9b.zip
util.ip: rename variable (i is already defined) [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 1f32d1b5..81a98ef7 100644
--- a/util/ip.lua
+++ b/util/ip.lua
@@ -58,8 +58,8 @@ local function toBits(ip)
for _ = 1, 4 - field:len() do
result = result .. "0000";
end
- for i = 1, field:len() do
- result = result .. hex2bits[field:sub(i,i)];
+ for j = 1, field:len() do
+ result = result .. hex2bits[field:sub(j, j)];
end
end
end