diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-11-22 08:33:29 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-11-22 08:33:29 +0000 |
commit | d55a5826e81136a9ecf65c4cd407152a56684dc2 (patch) | |
tree | 109ad44c75cee890ad5e98583e12b15b5e65a18e /samples/lpr.lua | |
parent | a2b780bf7a78c66d54a248fa99b5fc862c12a127 (diff) | |
download | luasocket-d55a5826e81136a9ecf65c4cd407152a56684dc2.tar.gz luasocket-d55a5826e81136a9ecf65c4cd407152a56684dc2.tar.bz2 luasocket-d55a5826e81136a9ecf65c4cd407152a56684dc2.zip |
Few tweaks in installation, some missing files, etc.
Diffstat (limited to 'samples/lpr.lua')
-rw-r--r-- | samples/lpr.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/lpr.lua b/samples/lpr.lua index 5ab4d69..2b059b1 100644 --- a/samples/lpr.lua +++ b/samples/lpr.lua | |||
@@ -36,7 +36,8 @@ do | |||
36 | return usage() | 36 | return usage() |
37 | end | 37 | end |
38 | if arg[1] ~= "query" then | 38 | if arg[1] ~= "query" then |
39 | r,e=lp.send(arg[1],opt) | 39 | opt.file = arg[1] |
40 | r,e=lp.send(opt) | ||
40 | io.stdout:write(tostring(r or e),'\n') | 41 | io.stdout:write(tostring(r or e),'\n') |
41 | else | 42 | else |
42 | r,e=lp.query(opt) | 43 | r,e=lp.query(opt) |