X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fnfs%2Flibnfs-raw.h;h=076b13805e068236afa9b0b49f1c332af2aaecc7;hb=91e70cdae9f49f27db1a10ce12b70985e506c069;hp=c4589cb5a1b0708da80fd4c64ae25860750190b1;hpb=a40b318e7a07a452ae7456053727bd11b2fa49b4;p=ccan-lca-2011.git diff --git a/ccan/nfs/libnfs-raw.h b/ccan/nfs/libnfs-raw.h index c4589cb..076b138 100644 --- a/ccan/nfs/libnfs-raw.h +++ b/ccan/nfs/libnfs-raw.h @@ -1,3 +1,5 @@ +#ifndef CCAN_NFS_LIBNFS_RAW_H +#define CCAN_NFS_LIBNFS_RAW_H /* Copyright (C) by Ronnie Sahlberg 2010 @@ -298,7 +300,7 @@ int rpc_nfs_access_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * data is NULL. */ -int rpc_nfs_read_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, off_t offset, size_t count, void *private_data); +int rpc_nfs_read_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, nfs_off_t offset, size_t count, void *private_data); /* * Call NFS/WRITE @@ -314,7 +316,7 @@ int rpc_nfs_read_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, o * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * data is NULL. */ -int rpc_nfs_write_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, char *buf, off_t offset, size_t count, int stable_how, void *private_data); +int rpc_nfs_write_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, char *buf, nfs_off_t offset, size_t count, int stable_how, void *private_data); /* * Call NFS/COMMIT @@ -557,3 +559,4 @@ int rpc_nfs_link_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *file, */ int rpc_nfsacl_null_async(struct rpc_context *rpc, rpc_cb cb, void *private_data); +#endif /* CCAN_NFS_LIBNFS_RAW_H */