From c7bb19c55c7a902e25bdd33b0d49a2ddcf62e07a Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 22 Dec 2012 21:38:26 +0000 Subject: 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 --- nss/solnss.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'nss/solnss.c') 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; -- cgit v1.2.3