Pascal Peridont 19 yıl önce
ebeveyn
işleme
684cee4eb1
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      std/mtwin/net/Ftp.hx

+ 2 - 2
std/mtwin/net/Ftp.hx

@@ -366,7 +366,7 @@ class Ftp {
 		return null;
 	}
 
-	function retrieveBytes( cmd:String, callback:String->Int->Void, ?bufSize:Int, ?rest:String ) {
+	function retrieveBytes( cmd:String, cb:String->Int->Void, ?bufSize:Int, ?rest:String ) {
 		if (bufSize == null)
 			bufSize = 8192;
 		var res = voidCommand("TYPE I");
@@ -376,7 +376,7 @@ class Ftp {
 			try {
 				var buf = neko.Lib.makeString(bufSize);
 				rdd = cnx.input.readBytes(buf, 0, bufSize);
-				callback(buf, rdd);
+				cb(buf, rdd);
 			}
 			catch (eof:Eof){
 				rdd = 0;