summaryrefslogtreecommitdiff
path: root/nss/protocols.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2010-12-13 21:36:15 +0000
committerArthur de Jong <arthur@arthurdejong.org>2010-12-13 21:36:15 +0000
commit669d8ae73e5a56aafa422e76e4179e22c29a99df (patch)
treed624fe3c5296ad812bf2f29309514e288e99963e /nss/protocols.c
parent85eefd6f9e2f384f7df2d5c503eb3a75f15bb53f (diff)
have a more consistent naming convention for static lookup functions
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1331 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss/protocols.c')
-rw-r--r--nss/protocols.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/nss/protocols.c b/nss/protocols.c
index 93e230e..5d61576 100644
--- a/nss/protocols.c
+++ b/nss/protocols.c
@@ -142,14 +142,14 @@ static nss_status_t read_protostring(TFILE *fp,nss_XbyY_args_t *args)
#endif /* not HAVE_STRUCT_NSS_XBYY_ARGS_RETURNLEN */
-static nss_status_t get_getprotobyname(nss_backend_t UNUSED(*be),void *args)
+static nss_status_t protocols_getprotobyname(nss_backend_t UNUSED(*be),void *args)
{
NSS_BYNAME(NSLCD_ACTION_PROTOCOL_BYNAME,
NSS_ARGS(args)->key.name,
READ_RESULT(fp));
}
-static nss_status_t get_getprotobynumber(nss_backend_t UNUSED(*be),void *args)
+static nss_status_t protocols_getprotobynumber(nss_backend_t UNUSED(*be),void *args)
{
NSS_BYINT32(NSLCD_ACTION_PROTOCOL_BYNUMBER,
NSS_ARGS(args)->key.number,
@@ -159,39 +159,39 @@ static nss_status_t get_getprotobynumber(nss_backend_t UNUSED(*be),void *args)
/* thread-local file pointer to an ongoing request */
static __thread TFILE *protoentfp;
-static nss_status_t get_setprotoent(nss_backend_t UNUSED(*be),void UNUSED(*args))
+static nss_status_t protocols_setprotoent(nss_backend_t UNUSED(*be),void UNUSED(*args))
{
NSS_SETENT(protoentfp);
}
-static nss_status_t get_getprotoent(nss_backend_t UNUSED(*be),void *args)
+static nss_status_t protocols_getprotoent(nss_backend_t UNUSED(*be),void *args)
{
NSS_GETENT(protoentfp,NSLCD_ACTION_PROTOCOL_ALL,
READ_RESULT(protoentfp));
}
-static nss_status_t get_endprotoent(nss_backend_t UNUSED(*be),void UNUSED(*args))
+static nss_status_t protocols_endprotoent(nss_backend_t UNUSED(*be),void UNUSED(*args))
{
NSS_ENDENT(protoentfp);
}
-static nss_status_t destructor(nss_backend_t *be,void UNUSED(*args))
+static nss_status_t protocols_destructor(nss_backend_t *be,void UNUSED(*args))
{
free(be);
return NSS_STATUS_SUCCESS;
}
static nss_backend_op_t proto_ops[]={
- destructor,
- get_endprotoent,
- get_setprotoent,
- get_getprotoent,
- get_getprotobyname,
- get_getprotobynumber
+ protocols_destructor,
+ protocols_endprotoent,
+ protocols_setprotoent,
+ protocols_getprotoent,
+ protocols_getprotobyname,
+ protocols_getprotobynumber
};
nss_backend_t *_nss_ldap_protocols_constr(const char UNUSED(*db_name),
- const char UNUSED(*src_name),const char UNUSED(*cfg_args))
+ const char UNUSED(*src_name),const char UNUSED(*cfg_args))
{
nss_backend_t *be;
be=(nss_backend_t *)malloc(sizeof(*be));