summaryrefslogtreecommitdiff
path: root/src/util/virlease.h
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2018-12-13 13:32:06 +0000
committerDaniel P. Berrangé <berrange@redhat.com>2018-12-14 10:46:53 +0000
commit4cfd7090212cbe38572274a7fff2475f4f8e87b7 (patch)
tree62847b9049c6d6df611833aea4b64128ceb6196f /src/util/virlease.h
parent76ddd01ecd27e85f28e9f62641b3b1a2fffc8526 (diff)
downloadlibvirt-4cfd7090212cbe38572274a7fff2475f4f8e87b7.tar.gz
Fix many mistakes & inconsistencies in header file layout
This introduces a syntax-check script that validates header files use a common layout: /* ...copyright header... */ <one blank line> #ifndef SYMBOL # define SYMBOL ....content.... #endif /* SYMBOL */ For any file ending priv.h, before the #ifndef, we will require a guard to prevent bogus imports: #ifndef SYMBOL_ALLOW # error .... #endif /* SYMBOL_ALLOW */ <one blank line> The many mistakes this script identifies are then fixed. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'src/util/virlease.h')
-rw-r--r--src/util/virlease.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/virlease.h b/src/util/virlease.h
index b9f394e9aa..9f151aed74 100644
--- a/src/util/virlease.h
+++ b/src/util/virlease.h
@@ -41,4 +41,5 @@ int virLeaseNew(virJSONValuePtr *lease_ret,
const char *hostname,
const char *iaid,
const char *server_duid);
-#endif /* __VIR_LEASE_H */
+
+#endif /* __VIR_LEASE_H_ */