diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-12-23 22:32:12 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-12-23 22:32:12 +0000 |
| commit | 2f970d782ea97a73787f76bd100bb06615456904 (patch) | |
| tree | 949257dd1ec89db41757fe1f0209c8f8a7e2bbe8 /etc | |
| parent | ae2d2859e7882d553276896d499064a2407c3853 (diff) | |
| download | luasocket-2f970d782ea97a73787f76bd100bb06615456904.tar.gz luasocket-2f970d782ea97a73787f76bd100bb06615456904.tar.bz2 luasocket-2f970d782ea97a73787f76bd100bb06615456904.zip | |
Changes due to new compat-5.1
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/dict.lua | 4 | ||||
| -rw-r--r-- | etc/lp.lua | 4 | ||||
| -rw-r--r-- | etc/tftp.lua | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/etc/dict.lua b/etc/dict.lua index 716b8db..cedbcde 100644 --- a/etc/dict.lua +++ b/etc/dict.lua | |||
| @@ -15,7 +15,7 @@ local socket = require("socket") | |||
| 15 | local url = require("socket.url") | 15 | local url = require("socket.url") |
| 16 | local tp = require("socket.tp") | 16 | local tp = require("socket.tp") |
| 17 | 17 | ||
| 18 | local dict = module("socket.dict") | 18 | module("socket.dict") |
| 19 | 19 | ||
| 20 | ----------------------------------------------------------------------------- | 20 | ----------------------------------------------------------------------------- |
| 21 | -- Globals | 21 | -- Globals |
| @@ -151,4 +151,4 @@ get = socket.protect(function(gett) | |||
| 151 | else return tget(gett) end | 151 | else return tget(gett) end |
| 152 | end) | 152 | end) |
| 153 | 153 | ||
| 154 | base.setmetatable(dict, nil) | 154 | base.getmetatable(_M).__index = nil |
| @@ -14,7 +14,7 @@ local base = require("base") | |||
| 14 | local string = require("string") | 14 | local string = require("string") |
| 15 | local socket = require("socket") | 15 | local socket = require("socket") |
| 16 | local ltn12 = require("ltn12") | 16 | local ltn12 = require("ltn12") |
| 17 | local lp = module("socket.lp") | 17 | module("socket.lp") |
| 18 | 18 | ||
| 19 | -- default port | 19 | -- default port |
| 20 | PORT = 515 | 20 | PORT = 515 |
| @@ -318,4 +318,4 @@ query = socket.protect(function(p) | |||
| 318 | return data | 318 | return data |
| 319 | end) | 319 | end) |
| 320 | 320 | ||
| 321 | base.setmetatable(lp, nil) | 321 | base.getmetatable(_M).__index = nil |
diff --git a/etc/tftp.lua b/etc/tftp.lua index 83a08b9..a8158e2 100644 --- a/etc/tftp.lua +++ b/etc/tftp.lua | |||
| @@ -15,7 +15,7 @@ local string = require("string") | |||
| 15 | local socket = require("socket") | 15 | local socket = require("socket") |
| 16 | local ltn12 = require("ltn12") | 16 | local ltn12 = require("ltn12") |
| 17 | local url = require("socket.url") | 17 | local url = require("socket.url") |
| 18 | local tftp = module("socket.tftp") | 18 | module("socket.tftp") |
| 19 | 19 | ||
| 20 | ----------------------------------------------------------------------------- | 20 | ----------------------------------------------------------------------------- |
| 21 | -- Program constants | 21 | -- Program constants |
| @@ -153,4 +153,4 @@ get = socket.protect(function(gett) | |||
| 153 | else return tget(gett) end | 153 | else return tget(gett) end |
| 154 | end) | 154 | end) |
| 155 | 155 | ||
| 156 | base.setmetatable(tftp, nil) | 156 | base.getmetatable(_M).__index = nil |
