X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Fnfsclient-async.c;h=b630f4e794c7ce0305baa332dfbec805470a52aa;hb=1896d37bfaae78bfa0e6ee3e3fb19b0a92bb1adb;hp=4abb901a1c063a383e85b1ba629b881d8373b15c;hpb=84004dbf9bb2ab8a7f8b968affc53ee3065fa911;p=deb_libnfs.git diff --git a/examples/nfsclient-async.c b/examples/nfsclient-async.c index 4abb901..b630f4e 100644 --- a/examples/nfsclient-async.c +++ b/examples/nfsclient-async.c @@ -138,8 +138,8 @@ void nfs_open_cb(int status, struct nfs_context *nfs, void *data, void *private_ nfsfh = data; client->nfsfh = nfsfh; printf("Got reply from server for open(%s). Handle:%p\n", NFSFILE, data); - printf("Read first 16 bytes\n"); - if (nfs_pread_async(nfs, nfsfh, 0, 16, nfs_read_cb, client) != 0) { + printf("Read first 64 bytes\n"); + if (nfs_pread_async(nfs, nfsfh, 0, 64, nfs_read_cb, client) != 0) { printf("Failed to start async nfs open\n"); exit(10); } @@ -187,7 +187,7 @@ void nfs_mount_cb(int status, struct nfs_context *nfs, void *data, void *private -int main(int argc, char *argv[]) +int main(int argc _U_, char *argv[] _U_) { struct nfs_context *nfs; struct pollfd pfd;