summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-slapi-plugins/ipa-cldap
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2016-05-24 10:18:43 -0400
committerMartin Basti <mbasti@redhat.com>2016-05-29 14:04:45 +0200
commit4bafba06f2b8cc51cd95a725e1c8adf7bbf9a5fc (patch)
tree25c3e7a633daac2d6e08a7031580f9d12b0cadf4 /daemons/ipa-slapi-plugins/ipa-cldap
parent9cbb54db99eb1855a5c840699072ead9b6d75d04 (diff)
Migrate from #ifndef guards to #pragma once
Using a pragma instead of guards is easier to write, less error prone and avoids name clashes (a source of very subtle bugs). This pragma is supported on almost all compilers, including all the compilers we care about: https://en.wikipedia.org/wiki/Pragma_once#Portability. This patch does not change the autogenerated files: asn1/asn1c/*.h. Reviewed-By: Martin Basti <mbasti@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
Diffstat (limited to 'daemons/ipa-slapi-plugins/ipa-cldap')
-rw-r--r--daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.h b/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.h
index 5e963e3f8..a3ebfbfe2 100644
--- a/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.h
+++ b/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.h
@@ -37,8 +37,7 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
-#ifndef _IPA_CLDAP_H_
-#define _IPA_CLDAP_H_
+#pragma once
#ifdef HAVE_CONFIG_H
# include <config.h>
@@ -108,4 +107,3 @@ int ipa_cldap_netlogon(struct ipa_cldap_ctx *ctx,
struct berval *reply);
char *make_netbios_name(TALLOC_CTX *mem_ctx, const char *s);
-#endif /* _IPA_CLDAP_H_ */