remove uses of arg in the codebase

This commit is contained in:
Pierre Chapuis 2013-01-23 19:13:32 +01:00
parent eea1bc04d7
commit 33b4f0cfc7
2 changed files with 6 additions and 7 deletions

View file

@ -4,24 +4,24 @@ local socket = require"socket.unix"
host = "luasocket"
function pass(...)
local s = string.format(unpack(arg))
local s = string.format(...)
io.stderr:write(s, "\n")
end
function fail(...)
local s = string.format(unpack(arg))
local s = string.format(...)
io.stderr:write("ERROR: ", s, "!\n")
socket.sleep(3)
os.exit()
end
function warn(...)
local s = string.format(unpack(arg))
local s = string.format(...)
io.stderr:write("WARNING: ", s, "\n")
end
function remote(...)
local s = string.format(unpack(arg))
local s = string.format(...)
s = string.gsub(s, "\n", ";")
s = string.gsub(s, "%s+", " ")
s = string.gsub(s, "^%s*", "")