From: Rusty Russell Date: Mon, 15 Nov 2010 02:47:12 +0000 (+1030) Subject: nfs: make headers idempotent X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=91e70cdae9f49f27db1a10ce12b70985e506c069;hp=877f1dd54c2e91407dd6491b8329c499adb9f881 nfs: make headers idempotent ccanlint did this automatically. --- diff --git a/ccan/nfs/LICENSE b/ccan/nfs/LICENSE new file mode 120000 index 00000000..190cfd5e --- /dev/null +++ b/ccan/nfs/LICENSE @@ -0,0 +1 @@ +../../licenses/GPL-3 \ No newline at end of file diff --git a/ccan/nfs/libnfs-private.h b/ccan/nfs/libnfs-private.h index d075f171..7aeede84 100644 --- a/ccan/nfs/libnfs-private.h +++ b/ccan/nfs/libnfs-private.h @@ -1,3 +1,5 @@ +#ifndef CCAN_NFS_LIBNFS_PRIVATE_H +#define CCAN_NFS_LIBNFS_PRIVATE_H /* Copyright (C) by Ronnie Sahlberg 2010 @@ -66,3 +68,4 @@ int rpc_get_pdu_size(char *buf); int rpc_process_pdu(struct rpc_context *rpc, char *buf, int size); void rpc_error_all_pdus(struct rpc_context *rpc, char *error); +#endif /* CCAN_NFS_LIBNFS_PRIVATE_H */ diff --git a/ccan/nfs/libnfs-raw.h b/ccan/nfs/libnfs-raw.h index b68a92a9..076b1380 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 @@ -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 */ diff --git a/ccan/nfs/nfs.h b/ccan/nfs/nfs.h index 803b175c..7d45c13b 100644 --- a/ccan/nfs/nfs.h +++ b/ccan/nfs/nfs.h @@ -1,3 +1,5 @@ +#ifndef CCAN_NFS_H +#define CCAN_NFS_H /* Copyright (C) by Ronnie Sahlberg 2010 @@ -911,3 +913,4 @@ int nfs_link_sync(struct nfs_context *nfs, const char *oldpath, const char *newp //qqq replace later with lseek(cur, 0) nfs_off_t nfs_get_current_offset(struct nfsfh *nfsfh); +#endif /* CCAN_NFS_H */