aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-17 21:46:22 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-17 21:46:22 +0000
commit597a062b1bc38488df1363995eece8a9f19c7111 (patch)
treeba4ccaa8be98d1100aed63abb9c42c099f2c41bb /src
parenteac26d2c8dafab604ef2e97e504326cfaf1033cf (diff)
downloadluasocket-597a062b1bc38488df1363995eece8a9f19c7111.tar.gz
luasocket-597a062b1bc38488df1363995eece8a9f19c7111.tar.bz2
luasocket-597a062b1bc38488df1363995eece8a9f19c7111.zip
Almost ready for distribution...
Diffstat (limited to 'src')
-rw-r--r--src/auxiliar.c1
-rw-r--r--src/ftp.lua4
-rw-r--r--src/luasocket.c1
3 files changed, 4 insertions, 2 deletions
diff --git a/src/auxiliar.c b/src/auxiliar.c
index 9a37e10..2ebcdd6 100644
--- a/src/auxiliar.c
+++ b/src/auxiliar.c
@@ -16,6 +16,7 @@
16* Initializes the module 16* Initializes the module
17\*-------------------------------------------------------------------------*/ 17\*-------------------------------------------------------------------------*/
18int aux_open(lua_State *L) { 18int aux_open(lua_State *L) {
19 (void) L;
19 return 0; 20 return 0;
20} 21}
21 22
diff --git a/src/ftp.lua b/src/ftp.lua
index f3b8a5e..3868158 100644
--- a/src/ftp.lua
+++ b/src/ftp.lua
@@ -176,7 +176,7 @@ end
176-- High level FTP API 176-- High level FTP API
177----------------------------------------------------------------------------- 177-----------------------------------------------------------------------------
178local function tput(putt) 178local function tput(putt)
179 local con = ftp.open(putt.host, putt.port) 179 local con = open(putt.host, putt.port)
180 con:greet() 180 con:greet()
181 con:login(putt.user, putt.password) 181 con:login(putt.user, putt.password)
182 if putt.type then con:type(putt.type) end 182 if putt.type then con:type(putt.type) end
@@ -216,7 +216,7 @@ put = socket.protect(function(putt, body)
216end) 216end)
217 217
218local function tget(gett) 218local function tget(gett)
219 local con = ftp.open(gett.host, gett.port) 219 local con = open(gett.host, gett.port)
220 con:greet() 220 con:greet()
221 con:login(gett.user, gett.password) 221 con:login(gett.user, gett.password)
222 if gett.type then con:type(gett.type) end 222 if gett.type then con:type(gett.type) end
diff --git a/src/luasocket.c b/src/luasocket.c
index 6f7debe..735235a 100644
--- a/src/luasocket.c
+++ b/src/luasocket.c
@@ -75,6 +75,7 @@ static int global_skip(lua_State *L) {
75* Unloads the library 75* Unloads the library
76\*-------------------------------------------------------------------------*/ 76\*-------------------------------------------------------------------------*/
77static int global_unload(lua_State *L) { 77static int global_unload(lua_State *L) {
78 (void) L;
78 sock_close(); 79 sock_close();
79 return 0; 80 return 0;
80} 81}