diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2012-12-22 22:38:26 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2012-12-22 22:38:26 +0100 |
commit | c7bb19c55c7a902e25bdd33b0d49a2ddcf62e07a (patch) | |
tree | b3a75ef2719bc2f334041460fd21fbdf86a23a82 /nslcd/cfg.h | |
parent | d336cd6b429f8ce40c58ea287f79bbc7c23d0966 (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.h | 14 |
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 */ |