Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss/rpc.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2010-09-24 15:04:06 +0200
committerArthur de Jong <arthur@arthurdejong.org>2010-09-24 15:04:06 +0200
commite21d0b3e3a87c9a361ecde9560c3fd07226e97d1 (patch)
tree0bbb3533783e17276abd69128d685169a0bd963f /nss/rpc.c
parent2bdae403811d7d995cd921b4232c9f9256068ab5 (diff)
switch to using nss_status_t throughout the code and provide compatibility code to use whatever nss_status type is used on the system
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1214 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss/rpc.c')
-rw-r--r--nss/rpc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/nss/rpc.c b/nss/rpc.c
index ddfd8ee..596d650 100644
--- a/nss/rpc.c
+++ b/nss/rpc.c
@@ -29,7 +29,7 @@
#include "common.h"
#include "compat/attrs.h"
-static enum nss_status read_rpcent(
+static nss_status_t read_rpcent(
TFILE *fp,struct rpcent *result,
char *buffer,size_t buflen,int *errnop)
{
@@ -41,14 +41,14 @@ static enum nss_status read_rpcent(
return NSS_STATUS_SUCCESS;
}
-enum nss_status _nss_ldap_getrpcbyname_r(const char *name,struct rpcent *result,char *buffer,size_t buflen,int *errnop)
+nss_status_t _nss_ldap_getrpcbyname_r(const char *name,struct rpcent *result,char *buffer,size_t buflen,int *errnop)
{
NSS_BYNAME(NSLCD_ACTION_RPC_BYNAME,
name,
read_rpcent(fp,result,buffer,buflen,errnop));
}
-enum nss_status _nss_ldap_getrpcbynumber_r(int number,struct rpcent *result,char *buffer,size_t buflen,int *errnop)
+nss_status_t _nss_ldap_getrpcbynumber_r(int number,struct rpcent *result,char *buffer,size_t buflen,int *errnop)
{
NSS_BYINT32(NSLCD_ACTION_RPC_BYNUMBER,
number,
@@ -58,18 +58,18 @@ enum nss_status _nss_ldap_getrpcbynumber_r(int number,struct rpcent *result,char
/* thread-local file pointer to an ongoing request */
static __thread TFILE *protoentfp;
-enum nss_status _nss_ldap_setrpcent(int UNUSED(stayopen))
+nss_status_t _nss_ldap_setrpcent(int UNUSED(stayopen))
{
NSS_SETENT(protoentfp);
}
-enum nss_status _nss_ldap_getrpcent_r(struct rpcent *result,char *buffer,size_t buflen,int *errnop)
+nss_status_t _nss_ldap_getrpcent_r(struct rpcent *result,char *buffer,size_t buflen,int *errnop)
{
NSS_GETENT(protoentfp,NSLCD_ACTION_RPC_ALL,
read_rpcent(protoentfp,result,buffer,buflen,errnop));
}
-enum nss_status _nss_ldap_endrpcent(void)
+nss_status_t _nss_ldap_endrpcent(void)
{
NSS_ENDENT(protoentfp);
}