]> git.ozlabs.org Git - ccan/commitdiff
nfs: make headers idempotent
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Nov 2010 02:47:12 +0000 (13:17 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Nov 2010 02:47:12 +0000 (13:17 +1030)
ccanlint did this automatically.

ccan/nfs/LICENSE [new symlink]
ccan/nfs/libnfs-private.h
ccan/nfs/libnfs-raw.h
ccan/nfs/nfs.h

diff --git a/ccan/nfs/LICENSE b/ccan/nfs/LICENSE
new file mode 120000 (symlink)
index 0000000..190cfd5
--- /dev/null
@@ -0,0 +1 @@
+../../licenses/GPL-3
\ No newline at end of file
index d075f1713d2b5cae8f5db9fb39c73e0723ed87f3..7aeede84a12570d61dd3240ef3d6d9cc9aa87dcd 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef CCAN_NFS_LIBNFS_PRIVATE_H
+#define CCAN_NFS_LIBNFS_PRIVATE_H
 /* 
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
 /* 
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 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);
 
 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 */
index b68a92a91a14bd1f7df8570d4f991e73b8d67254..076b13805e068236afa9b0b49f1c332af2aaecc7 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef CCAN_NFS_LIBNFS_RAW_H
+#define CCAN_NFS_LIBNFS_RAW_H
 /* 
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
 /* 
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 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);
 
  */
 int rpc_nfsacl_null_async(struct rpc_context *rpc, rpc_cb cb, void *private_data);
 
+#endif /* CCAN_NFS_LIBNFS_RAW_H */
index 803b175cb6c78250f73f3666ddcae70a895506db..7d45c13b94043b7d3d63ff02897cc0a582c7e72a 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef CCAN_NFS_H
+#define CCAN_NFS_H
 /* 
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
 /* 
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 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);
 
 //qqq replace later with lseek(cur, 0)
 nfs_off_t nfs_get_current_offset(struct nfsfh *nfsfh);
+#endif /* CCAN_NFS_H */