Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd/cfg.h
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-12-22 22:38:26 +0100
committerArthur de Jong <arthur@arthurdejong.org>2012-12-22 22:38:26 +0100
commitc7bb19c55c7a902e25bdd33b0d49a2ddcf62e07a (patch)
treeb3a75ef2719bc2f334041460fd21fbdf86a23a82 /nslcd/cfg.h
parentd336cd6b429f8ce40c58ea287f79bbc7c23d0966 (diff)
update C coding style to a more commonly used style
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1873 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/cfg.h')
-rw-r--r--nslcd/cfg.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/nslcd/cfg.h b/nslcd/cfg.h
index ccbad37..4b10b28 100644
--- a/nslcd/cfg.h
+++ b/nslcd/cfg.h
@@ -48,16 +48,14 @@
/* maximum number of pam_authz_search options */
#define NSS_LDAP_CONFIG_MAX_AUTHZ_SEARCHES 8
-enum ldap_ssl_options
-{
+enum ldap_ssl_options {
SSL_OFF,
SSL_LDAPS,
SSL_START_TLS
};
/* selectors for different maps */
-enum ldap_map_selector
-{
+enum ldap_map_selector {
LM_PASSWD,
LM_SHADOW,
LM_GROUP,
@@ -72,8 +70,7 @@ enum ldap_map_selector
LM_NONE
};
-struct myldap_uri
-{
+struct myldap_uri {
char *uri;
/* time of first failed operation */
time_t firstfail;
@@ -81,8 +78,7 @@ struct myldap_uri
time_t lastfail;
};
-struct ldap_config
-{
+struct ldap_config {
/* the number of threads to start */
int ldc_threads;
/* the user name specified in the uid option */
@@ -94,7 +90,7 @@ struct ldap_config
/* whether or not case should be ignored in lookups */
int ldc_ignorecase;
/* NULL terminated list of URIs */
- struct myldap_uri ldc_uris[NSS_LDAP_CONFIG_URI_MAX+1];
+ struct myldap_uri ldc_uris[NSS_LDAP_CONFIG_URI_MAX + 1];
/* protocol version */
int ldc_version;
/* bind DN */