repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove the need for an explicit rpc context for the highlevel function mount_getexports()
[deb_libnfs.git]
/
examples
/
nfsclient-sync.c
diff --git
a/examples/nfsclient-sync.c
b/examples/nfsclient-sync.c
index 6fc219e302549e82045c093ea102082647fb8d4c..93704431d2d8f5aa7383d26346ae7934385059f2 100644
(file)
--- a/
examples/nfsclient-sync.c
+++ b/
examples/nfsclient-sync.c
@@
-62,19
+62,15
@@
int main(int argc _U_, char *argv[] _U_)
off_t offset;
struct statvfs svfs;
exports export, tmp;
off_t offset;
struct statvfs svfs;
exports export, tmp;
- struct rpc_context *mount_context;
printf("exports on server %s\n", SERVER);
printf("exports on server %s\n", SERVER);
- mount_context = rpc_init_context();
- export = mount_getexports(mount_context, SERVER);
+ export = mount_getexports(SERVER);
tmp = export;
while (tmp != NULL) {
printf("Export: %s\n", tmp->ex_dir);
tmp = tmp->ex_next;
}
mount_free_export_list(export);
tmp = export;
while (tmp != NULL) {
printf("Export: %s\n", tmp->ex_dir);
tmp = tmp->ex_next;
}
mount_free_export_list(export);
- rpc_destroy_context(mount_context);
-
nfs = nfs_init_context();
nfs = nfs_init_context();