From 597a062b1bc38488df1363995eece8a9f19c7111 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Thu, 17 Jun 2004 21:46:22 +0000 Subject: Almost ready for distribution... --- src/auxiliar.c | 1 + src/ftp.lua | 4 ++-- src/luasocket.c | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 @@ * Initializes the module \*-------------------------------------------------------------------------*/ int aux_open(lua_State *L) { + (void) L; return 0; } 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 -- High level FTP API ----------------------------------------------------------------------------- local function tput(putt) - local con = ftp.open(putt.host, putt.port) + local con = open(putt.host, putt.port) con:greet() con:login(putt.user, putt.password) if putt.type then con:type(putt.type) end @@ -216,7 +216,7 @@ put = socket.protect(function(putt, body) end) local function tget(gett) - local con = ftp.open(gett.host, gett.port) + local con = open(gett.host, gett.port) con:greet() con:login(gett.user, gett.password) 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) { * Unloads the library \*-------------------------------------------------------------------------*/ static int global_unload(lua_State *L) { + (void) L; sock_close(); return 0; } -- cgit v1.2.3-55-g6feb