spcfd_add takes an additional parameter (offset) which was added for
xget. this patch does the necessary changes to comply with the new
function definition.
Signed-off-by: Abhishek Kulkarni <[EMAIL PROTECTED]>
Index: xbootfs/xbootfs.c
===================================================================
--- xbootfs/xbootfs.c (revision 734)
+++ xbootfs/xbootfs.c (working copy)
@@ -382,7 +382,7 @@
spc_close(datafid);
sp_werror(NULL, 0);
datafid = spc_open(masterfs, "data", Oread);
- spcfd_add(datafid, netreadcb, NULL);
+ spcfd_add(datafid, netreadcb, NULL, 0);
datalen = 0;
return;
}
@@ -490,7 +490,7 @@
if (!datafid)
goto error;
- spcfd_add(datafid, netreadcb, NULL);
+ spcfd_add(datafid, netreadcb, NULL, 0);
return 0;
error:
Index: libxcpu/file.c
===================================================================
--- libxcpu/file.c (revision 734)
+++ libxcpu/file.c (working copy)
@@ -279,7 +279,7 @@
return 0;
}
- f->spcfd = spcfd_add(f->fid, xp_file_notify, c);
+ f->spcfd = spcfd_add(f->fid, xp_file_notify, c, 0);
if (!f->spcfd) {
if (c->finish)
(*c->finish)(c, c->finishaux);