ftp/ftp.x
changeset 1 47438813ede2
parent 0 30d751ac6d49
--- a/ftp/ftp.x	Mon Jan 18 14:10:13 2010 +0530
+++ b/ftp/ftp.x	Mon Jan 18 17:21:39 2010 +0530
@@ -14,7 +14,7 @@
  * and the byte number at which to start reading the file from
  */
 struct request {
-	filename name;
+    filename name;
     int start;
 };
 
@@ -28,7 +28,7 @@
  * sent from the server to the client in the current
  * remote procedure call
  */
-typedef int filechunk<MAXLEN>;
+typedef int filechunk[MAXLEN];
 
 /*
  * Response sent by the server to the client as a response
@@ -36,8 +36,8 @@
  * the current call and number of bytes actually read
  */
 struct chunkreceive {
-	filechunk data;
-	int bytes;
+   filechunk data;
+   int items;
 };
 
 /*
@@ -52,9 +52,9 @@
  * number of bytes in the data
  */
 struct chunksend {
-	filename name;
+    filename name;
     filechunk data;
-	int bytes;
+    int items;
 };
 
 /*
@@ -69,10 +69,10 @@
  * or will return the error number if an error occured
  */
 union readfile_res switch (int errno) {
-	case 0:
-	    chunkreceive chunk;
-	default:
-	    void;
+    case 0:
+        chunkreceive chunk;
+    default:
+        void;
 };
 
 /*
@@ -81,9 +81,9 @@
  * the remote procedure signature
  */
 program FTPPROG {
-	version FTPVER {
-		readfile_res retrieve_file(request *) = 1;
-		int send_file(chunksend *) = 2;
-	} = 1;
+    version FTPVER {
+	readfile_res retrieve_file(request *) = 1;
+	int send_file(chunksend *) = 2;
+    } = 1;
 } = 0x20000011;