diff options
author | Pierre Chapuis <catwell@archlinux.us> | 2013-01-23 19:13:32 +0100 |
---|---|---|
committer | Pierre Chapuis <catwell@archlinux.us> | 2013-01-23 19:13:32 +0100 |
commit | 33b4f0cfc7f0a0ebd5d4aaf9bbfe88a02d4368e7 (patch) | |
tree | c8a5d02130f4ceb93084a8d6d5d997195850b44f /test | |
parent | eea1bc04d759e6a0e51c0b008828eaa372790cdb (diff) | |
download | luasocket-33b4f0cfc7f0a0ebd5d4aaf9bbfe88a02d4368e7.tar.gz luasocket-33b4f0cfc7f0a0ebd5d4aaf9bbfe88a02d4368e7.tar.bz2 luasocket-33b4f0cfc7f0a0ebd5d4aaf9bbfe88a02d4368e7.zip |
remove uses of arg in the codebase
Diffstat (limited to 'test')
-rw-r--r-- | test/utestclnt.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/utestclnt.lua b/test/utestclnt.lua index eec6adc..01f55e5 100644 --- a/test/utestclnt.lua +++ b/test/utestclnt.lua | |||
@@ -4,24 +4,24 @@ local socket = require"socket.unix" | |||
4 | host = "luasocket" | 4 | host = "luasocket" |
5 | 5 | ||
6 | function pass(...) | 6 | function pass(...) |
7 | local s = string.format(unpack(arg)) | 7 | local s = string.format(...) |
8 | io.stderr:write(s, "\n") | 8 | io.stderr:write(s, "\n") |
9 | end | 9 | end |
10 | 10 | ||
11 | function fail(...) | 11 | function fail(...) |
12 | local s = string.format(unpack(arg)) | 12 | local s = string.format(...) |
13 | io.stderr:write("ERROR: ", s, "!\n") | 13 | io.stderr:write("ERROR: ", s, "!\n") |
14 | socket.sleep(3) | 14 | socket.sleep(3) |
15 | os.exit() | 15 | os.exit() |
16 | end | 16 | end |
17 | 17 | ||
18 | function warn(...) | 18 | function warn(...) |
19 | local s = string.format(unpack(arg)) | 19 | local s = string.format(...) |
20 | io.stderr:write("WARNING: ", s, "\n") | 20 | io.stderr:write("WARNING: ", s, "\n") |
21 | end | 21 | end |
22 | 22 | ||
23 | function remote(...) | 23 | function remote(...) |
24 | local s = string.format(unpack(arg)) | 24 | local s = string.format(...) |
25 | s = string.gsub(s, "\n", ";") | 25 | s = string.gsub(s, "\n", ";") |
26 | s = string.gsub(s, "%s+", " ") | 26 | s = string.gsub(s, "%s+", " ") |
27 | s = string.gsub(s, "^%s*", "") | 27 | s = string.gsub(s, "^%s*", "") |