X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Flibnfs-sync.c;h=580f76dd63ce3ef453f97a5fd675ce94c085a571;hb=3cea44dc5425410ad2ca0b5d5b471445def94a6c;hp=8ab05d71d1501fe0c388d2ede5513d25f31a7332;hpb=6ec481d3fae973cf077d70c9cf870b425fee7112;p=deb_libnfs.git diff --git a/lib/libnfs-sync.c b/lib/libnfs-sync.c index 8ab05d7..580f76d 100644 --- a/lib/libnfs-sync.c +++ b/lib/libnfs-sync.c @@ -258,14 +258,14 @@ static void open_cb(int status, struct nfs_context *nfs, void *data, void *priva *nfsfh = fh; } -int nfs_open(struct nfs_context *nfs, const char *path, int mode, struct nfsfh **nfsfh) +int nfs_open(struct nfs_context *nfs, const char *path, int flags, struct nfsfh **nfsfh) { struct sync_cb_data cb_data; cb_data.is_finished = 0; cb_data.return_data = nfsfh; - if (nfs_open_async(nfs, path, mode, open_cb, &cb_data) != 0) { + if (nfs_open_async(nfs, path, flags, open_cb, &cb_data) != 0) { nfs_set_error(nfs, "nfs_open_async failed"); return -1; }