diff options
Diffstat (limited to 'nss/solnss.c')
-rw-r--r-- | nss/solnss.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/nss/solnss.c b/nss/solnss.c index 5206e30..bc00252 100644 --- a/nss/solnss.c +++ b/nss/solnss.c @@ -1,7 +1,7 @@ /* solnss.c - Solaris specific NSS interface functions - Copyright (C) 2010 Arthur de Jong + Copyright (C) 2010, 2012 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -27,22 +27,22 @@ #include "common.h" #include "compat/attrs.h" -nss_backend_t *nss_ldap_constructor(nss_backend_op_t *ops,size_t sizeofops) +nss_backend_t *nss_ldap_constructor(nss_backend_op_t *ops, size_t sizeofops) { struct nss_ldap_backend *ldapbe; - ldapbe=(struct nss_ldap_backend *)malloc(sizeof(struct nss_ldap_backend)); - if (ldapbe==NULL) + ldapbe = (struct nss_ldap_backend *)malloc(sizeof(struct nss_ldap_backend)); + if (ldapbe == NULL) return NULL; - ldapbe->ops=ops; - ldapbe->n_ops=sizeofops/sizeof(nss_backend_op_t); - ldapbe->fp=NULL; + ldapbe->ops = ops; + ldapbe->n_ops = sizeofops / sizeof(nss_backend_op_t); + ldapbe->fp = NULL; return (nss_backend_t *)ldapbe; } -nss_status_t nss_ldap_destructor(nss_backend_t *be,void UNUSED(*args)) +nss_status_t nss_ldap_destructor(nss_backend_t *be, void UNUSED(*args)) { - struct nss_ldap_backend *ldapbe=(struct nss_ldap_backend *)be; - if (ldapbe->fp!=NULL) + struct nss_ldap_backend *ldapbe = (struct nss_ldap_backend *)be; + if (ldapbe->fp != NULL) (void)tio_close(ldapbe->fp); free(ldapbe); return NSS_STATUS_SUCCESS; |