From 4bafba06f2b8cc51cd95a725e1c8adf7bbf9a5fc Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Tue, 24 May 2016 10:18:43 -0400 Subject: 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 Reviewed-By: Christian Heimes --- util/ipa_pwd.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'util/ipa_pwd.h') diff --git a/util/ipa_pwd.h b/util/ipa_pwd.h index bc07549cc..15041c4e5 100644 --- a/util/ipa_pwd.h +++ b/util/ipa_pwd.h @@ -20,8 +20,7 @@ * along with this program. If not, see . */ -#ifndef _IPA_PWD_H_ -#define _IPA_PWD_H_ +#pragma once /* 90 days default pwd max lifetime */ #define IPAPWD_DEFAULT_PWDLIFE (90 * 24 *3600) @@ -75,5 +74,3 @@ int ipapwd_generate_new_history(char *password, int *new_pwd_hlen); int encode_nt_key(char *newPasswd, uint8_t *nt_key); - -#endif -- cgit