Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss/solnss.c
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 /nss/solnss.c
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 'nss/solnss.c')
-rw-r--r--nss/solnss.c20
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;