aboutsummaryrefslogtreecommitdiff
path: root/etc/forward.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2013-04-17 19:13:28 -0700
committerDiego Nehab <diego.nehab@gmail.com>2013-04-17 19:13:28 -0700
commit00435529bb9a3a6614e9934fe20c27ada3dc2283 (patch)
treedb1e6c023b75b19bb8d761c3d8df576cd6b4d5cd /etc/forward.lua
parentd548a78e5516bcc85d44f1d419cf53c71d6dcd79 (diff)
parent56893e9dcd1eeebffb42b227a2151e18d49bc370 (diff)
downloadluasocket-00435529bb9a3a6614e9934fe20c27ada3dc2283.tar.gz
luasocket-00435529bb9a3a6614e9934fe20c27ada3dc2283.tar.bz2
luasocket-00435529bb9a3a6614e9934fe20c27ada3dc2283.zip
Merge pull request #32 from ideka/unstable
Use the length operator (#) instead of table.getn.
Diffstat (limited to 'etc/forward.lua')
-rw-r--r--etc/forward.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/forward.lua b/etc/forward.lua
index 9073ac4..05ced1a 100644
--- a/etc/forward.lua
+++ b/etc/forward.lua
@@ -3,7 +3,7 @@ local dispatch = require("dispatch")
3local handler = dispatch.newhandler() 3local handler = dispatch.newhandler()
4 4
5-- make sure the user knows how to invoke us 5-- make sure the user knows how to invoke us
6if table.getn(arg) < 1 then 6if #arg < 1 then
7 print("Usage") 7 print("Usage")
8 print(" lua forward.lua <iport:ohost:oport> ...") 8 print(" lua forward.lua <iport:ohost:oport> ...")
9 os.exit(1) 9 os.exit(1)